We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yes. (A mild one.)
I got referred from parcel: parcel-bundler/parcel#5725
Version: http-proxy-middleware@1.0.6
When proxy target is not running, the error message in the browser shows the origin, not the target host, which is misleading.
I have a .proxyrc.json
{ "/api": { "target": "http://foobar/", "pathRewrite": { "^/api": "" } } }
When target is not running, I get the err in browser:
Error occured while trying to proxy to: localhost/upload
when opening
http://localhost/api/upload
which is misleading. I would prefer
Error occured while trying to proxy to: foobar/upload
Tracked it down to https://github.com/chimurai/http-proxy-middleware/blob/master/src/handlers.ts but do not know, what to change for a PR, and for which project.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Is this a bug report?
Yes. (A mild one.)
I got referred from parcel: parcel-bundler/parcel#5725
Version: http-proxy-middleware@1.0.6
TL;DR
When proxy target is not running, the error message in the browser shows the origin, not the target host, which is misleading.
Long:
I have a .proxyrc.json
When target is not running, I get the err in browser:
Error occured while trying to proxy to: localhost/upload
when opening
http://localhost/api/upload
which is misleading. I would prefer
Error occured while trying to proxy to: foobar/upload
Tracked it down to https://github.com/chimurai/http-proxy-middleware/blob/master/src/handlers.ts but do not know, what to change for a PR, and for which project.
The text was updated successfully, but these errors were encountered: