Closed
Description
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
Activity
adamreisnz commentedon Dec 19, 2016
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.