Skip to content

Adding CUSTOM headers through the proxy passthrough? X-Forwarded-For? Etc? #508

Open
@Analogreality

Description

@Analogreality

I need to be able to pass custom HTTP headers to the HTTP server behind this proxy.

For example, look at this guy:
http://blog.nikmartin.com/2013/07/secure-sessions-in-nodejs-with-nginx.html

He adds a few headers to indicate to the receiving server that it is a passthrough, with the real IP address.

How can I do the same with node-http-proxy?

I would assume the proxy should create a X-Forwarded-For header automaticaly (does it).. but additionally add other headers I specify.

What is the best way of doing this?

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

    Issue actions