Skip to content

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