-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
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
How to do 301 redirects #1030
Comments
I'm also trying to route to a 301 redirect with http-proxy and so far I'm only seeing reverse proxy behavior. Even when I look at your example, there's no parameter that would specify a 301 response. The client should be sent an endpoint url to make a new request against, similar to Express'
Also, can you please print the request + headers that you are using because I'm not able to reproduce the Thanks, |
I'm hitting the same issue with 1.14.0, basically any redirect I hit the browser traffic leaves the proxy for the real site. I'm using the following setup:
|
I think #1195 should fix this issue. |
I want to reopen this issue since 301 redirects still don't seem to work. Here's some reproducible code:
index.js
:Here was the output:
For reference I'm using node 4.2.4, and http-proxy 1.14.0.
The text was updated successfully, but these errors were encountered: