webhooksite / webhook.site

⚓️ Easily test HTTP webhooks with this handy tool that displays requests instantly.
https://webhook.site
Other
5.13k stars 398 forks source link

Use `x-forwarded-for` as `Host` #143

Open KaKi87 opened 1 year ago

KaKi87 commented 1 year ago

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

itssimple commented 10 months ago

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