-
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
Does not set session cookie as secure #91
Comments
You need to enable HSTS:
|
Hi I added the below: config.middleware.insert_before ActionController::Session::CookieStore, Rack::SslEnforcer, :hsts => true I have a Rails 2 application. If I use the above (ActionDispatch), code crashes saying "Could not find ActionDispatch) |
Guess you are right, have to inspect the Middleware stack für Rails 2.x applications. Thanks for getting back, i'm closing here... |
Hey, Can we change the path of the cookie using this gem? Regards, |
No, you can only configure if HSTS headers are set for subdomains or not, see What would be the Use-Case for this? |
If the path is set to the root directory ""/“, an attacker can access other cookies of the sub domain which are available under the parent domain. It is recommended to set the value of the “path” attribute to the actual virtual directory path of the application. I |
Hi
Below are the things I did:
require 'rack/ssl-enforcer'
config.middleware.use Rack::SslEnforcer
But still my session_id is not set as secure as verified in chrome developer console.
The text was updated successfully, but these errors were encountered: