Closed ShanArosh closed 2 years ago
You were looking at v3 documentation and examples.
// v3
on: {
proxyRes: ...
}
// v2
onProxyRes: ...
You can find the older v2 documentation here: https://github.com/chimurai/http-proxy-middleware/tree/2.x#intercept-and-manipulate-responses
Thanks for your response. Thanks for this repo
@chimurai I was setting up the middleware for firebase functions and got stuck with exactly same issue. Thanks for your response!
I stumbled on this issue just today, so be aware that v3 is still in beta and normal npm install http-proxy-middleware
will give you v2. Do npm install http-proxy-middleware@beta
instead.
Checks
http-proxy-middleware
.Describe the bug (be clear and concise)
web page continuously load when selfHandleResponse: true, used
Step-by-step reproduction instructions
Expected behavior (be clear and concise)
normally it loads when selfHandleResponse: false, but to edit response i need it to be true
How is http-proxy-middleware used in your project?
What http-proxy-middleware configuration are you using?
What OS/version and node/version are you seeing the problem?
Additional context (optional)
No response