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

Fixed nginx X-Forwarded-Proto to match the protocol ("http", "https") #617

Merged
merged 2 commits into from
Oct 30, 2023

Conversation

0x6d61726b
Copy link
Contributor

According to the specification of X-Forwarded-Proto, the value shall match the used protocol (e.g., "http", "https") which is provided as scheme variable in nginx.

@0x6d61726b
Copy link
Contributor Author

After my browser cache has expired, Gunicorn webserver returned a "Contradictory scheme headers" error.
According to benoitc/gunicorn#1857 Gunicorn uses the X-Forwarded-Proto value as protocol used between the proxy and itself, whereas X-Forwarded-Proto is defined as protocol between client and proxy.

@catborise catborise merged commit 8995f47 into retspen:master Oct 30, 2023
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.

None yet

2 participants