-
Notifications
You must be signed in to change notification settings - Fork 85
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
strict and HSTS are incompatible #8
Comments
i just get an infinite loop without specifying anything. I simply use this in config/application.rb:
and this in the gemfile
I assume that is all i needed to do if i wanted full site ssl, correct? If so, i get infinite loops with no useful production log warnings, even in :debug mode. |
Is there even a way to disable HSTS currently, without monkey patching? Looks like this gem is pretty useless, unless you want to force SSL on the whole site... |
fixed here: #16 |
@mdrozdziel HSTS is off by default, I close this issue since it's fixed for 1 year now! :) |
The :strict option and enabling HSTS by default are incompatible with each other and will result in infinite loops. As :strict tries to redirect the browser to http, the user's browser tries to redirect to https due to HSTS affecting any URL on the site.
As HSTS is fairly new and only supported by Chrome and Firefox nightlies, there should be a warning or the option to disable it when used together with :strict.
The text was updated successfully, but these errors were encountered: