webhook.site
webhook.site copied to clipboard
Use `x-forwarded-for` as `Host`
trafficstars
Hello,
I'm running the app using Docker through Apache : it displays the former's IP in Host despite the real IP being present in x-forwarded-for.
Thanks
Host would be incorrect, as Host is the hostname (and port) that you ask the webserver to serve.
The correct header would be X-Forwarded-Host, if you want the hostname forwarded.
X-Forwarded-For contains the client IP