docs(response-interceptor.md): add headers modification example#724
Conversation
An update to the responseInterceptor recipe to include modifying headers
|
Hi, The example you added is still using the Actually, modifying header is already documented at: https://github.com/chimurai/http-proxy-middleware/blob/master/recipes/proxy-events.md#onproxyres |
Hi, yes sorry perhaps I was not clear, when using the |
|
Thanks for clarifying! Think it'll helpful to have this example 👍 You might have missed some linting... |
Thanks, I have fixed the linting issues now I believe |
|
Thanks! |
An update to the responseInterceptor recipe to include modifying headers
Description
The recipe file did not include an example for modifying headers.
Motivation and Context
I was working on a proof of concept at my place of work, and trying to utilise http-proxy-middleware. I was struggling with modifying the response headers, the details in https://github.com/chimurai/http-proxy-middleware#http-proxy-events worked fine if you didn't want to use the response interceptor.
Types of changes
Checklist: