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
If the proxy needs a redirect the system makes a wrong redirect. Example:
target: http://xxxx/bill source: /bill original redirect http://xxxx/bill/v1/... calculated redirect: //v1/...
The problem is that proxy-middleware needs options.route valued on the redirect. A working solution is to modify index.js at the line 149
app.use(config.proxies[i].source, proxy(proxyoptions));
as follow
proxyoptions.route = config.proxies[i].source; app.use(proxy(proxyoptions));
Ciao Angelo
The text was updated successfully, but these errors were encountered:
I tried you solution, but it didn't worked. So I replaced "proxies" section with "middleware" and used "http-proxy-middleware"
Sorry, something went wrong.
No branches or pull requests
If the proxy needs a redirect the system makes a wrong redirect. Example:
target: http://xxxx/bill
source: /bill
original redirect http://xxxx/bill/v1/...
calculated redirect: //v1/...
The problem is that proxy-middleware needs options.route valued on the redirect.
A working solution is to modify index.js at the line 149
app.use(config.proxies[i].source, proxy(proxyoptions));
as follow
proxyoptions.route = config.proxies[i].source;
app.use(proxy(proxyoptions));
Ciao Angelo
The text was updated successfully, but these errors were encountered: