Open hannesm opened 1 month ago
from https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For, this is a de-factor standard for proxies.
it is pretty simple (well, would be if we'd be doing full HTTP): add a "X-Forwarded-For: " header. It may be simple enough to inject this header (similar to how we do the redirect).
I recently did this for contruno: https://github.com/dinosaure/contruno/pull/31
contruno
Indeed, related (what you did) is the X-Forwarded-Proto header.
from https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For, this is a de-factor standard for proxies.
it is pretty simple (well, would be if we'd be doing full HTTP): add a "X-Forwarded-For:" header. It may be simple enough to inject this header (similar to how we do the redirect).