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 'HTTP_FLY_FORWARDED_PROTO' to determine scheme. #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jubishop
Copy link

@jubishop jubishop commented May 2, 2021

I am using https://glitch.com/ and unfortunately even the HTTP_X_FORWARDED_PROTO is https,https,https when fetching http files. however the HTTP_FLY_FORWARDED_PROTO is accurate and comes through as a simple http or https. I am using this fork on my site right now, with gem 'rack-ssl-enforcer', github: 'jubishop/rack-ssl-enforcer' but would be happy to push this back into the main branch.

For nearly all users this should have no impact, because this header won't exist. But in the rare cases where it does, it solves this bug.

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.

1 participant