Skip to content

Origin header not propagated and not settable #1114

Closed
@adamreisnz

Description

@adamreisnz

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

adamreisnz commented on Dec 19, 2016

@adamreisnz
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @adamreisnz

        Issue actions

          Origin header not propagated and not settable · Issue #1114 · http-party/node-http-proxy