-
Notifications
You must be signed in to change notification settings - Fork 853
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 keep origin header? #139
Comments
Sounds very similar to facebook/create-react-app#1212
Can you create an issue at https://github.com/nodejitsu/node-http-proxy/issues ? |
Indeed, I will file it there, thanks |
It seems it was user error, I was using proxyRes instead of proxyReq to set the header, but proxyRes is the actual response from the target. |
I am using the proxy for a development server but am finding that it loses the Origin header along the way. I tried to set it back manually by using the
onProxyRes
callback in the options, but that didn't seem to work.Any thoughts on how I can keep the origin header on the forwarded request?
The text was updated successfully, but these errors were encountered: