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

RequestFactory: fix X-Forwarded-Host mixup with remote host #222

Merged
merged 1 commit into from
Mar 18, 2023

Conversation

JanTvrdik
Copy link
Contributor

@JanTvrdik JanTvrdik commented Mar 9, 2023

When reading #221, I noticed X-Forwarded-Host is incorrectly used for remote host.

X-Forwarded-Host is in no way related to remote host.
X-Forwarded-Host contain value of Host header that client sent to the proxy.
Remote host is related to remote addr (client ip).

@JanTvrdik JanTvrdik force-pushed the proxy-remote-host branch 2 times, most recently from 2d11e41 to 1ff390b Compare March 9, 2023 20:35
@JanTvrdik JanTvrdik force-pushed the proxy-remote-host branch from 1ff390b to 65d8278 Compare March 9, 2023 20:42
@dg
Copy link
Member

dg commented Mar 18, 2023

Thanks

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

Successfully merging this pull request may close these issues.

2 participants