Version: @parcel/[email protected]+c50e6555
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
{
"/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 the error 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.
Version: @parcel/[email protected]+c50e6555
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/uploadwhen opening
http://localhost/api/uploadwhich is misleading. I would prefer
Error occured while trying to proxy to: foobar/uploadTracked the error 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.