Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use x-forwarded-for as Host #143

Open
KaKi87 opened this issue Jul 10, 2023 · 1 comment
Open

Use x-forwarded-for as Host #143

KaKi87 opened this issue Jul 10, 2023 · 1 comment

Comments

@KaKi87
Copy link

KaKi87 commented Jul 10, 2023

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants