nodejitsu/node-http-proxy — Issue #143: node-http-proxy ignores incoming x-forward-for
Author: tpetry
Created: 2011-11-03 13:04:43+00:00
State: open

When you build your architecture that node-http-proxy is another proxy in a proxy chain it will ignore the incoming x-forward-for details and set it's own.

Architecture (all on the same server):

[nginx] -> [node-http-proxy] -> [node application]

Expected x-forward-for at node application:

[client-ip], [nginx-ip], [node-http-proxy-ip]

Actual x-forward-for at node application:

[node-http-proxy-ip]

It does not only throw away the x-forward-for information, it even does not pass the proxy-ip in the x-forward-for chain.