Skip to content
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

Origin header not propagated and not settable #1114

Closed
adamreisnz opened this issue Dec 19, 2016 · 1 comment
Closed

Origin header not propagated and not settable #1114

adamreisnz opened this issue Dec 19, 2016 · 1 comment

Comments

@adamreisnz
Copy link

adamreisnz commented Dec 19, 2016

I've been using node-http-proxy via http-proxy-middleware, but found that the origin header is not being propagated to the target server, nor was I able to set it via the proxyReq interface.

Is there a way to ensure the proxy will pass on the origin header in the request or avoid it from being removed/stripped?

See also:
chimurai/http-proxy-middleware#139
facebook/create-react-app#1212

@adamreisnz
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant