-
Notifications
You must be signed in to change notification settings - Fork 6
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
set httponly cookie #53
Comments
Thank you for pointing this out! This is making me wonder if I should just force SSL instead: # config/environments/production.rb
Rails.application.configure do
...
config.force_ssl = true
end |
No, it is a javascript injection code vulnerability, rails implements CSP to prevent it, but some people disable it… So it’s better to have it. |
Oh, interesting. Will the stolen cookie still be encrypted? Does |
Excatly... but with your cookies encrypted or not, I can put them here in my browser and impersonate you |
@lazaronixon thank you so much for the explanation. I'm learning a lot from you! |
rails_mvp_authentication/lib/generators/rails_mvp_authentication/templates/authentication.rb.tt
Line 38 in b2e0ebd
Someone can use 'document.cookies' and stole your cookie if you don't use httponly.
The text was updated successfully, but these errors were encountered: