Earlier, someone proposed on the GH issues tracker that Rails default all 
cookies to HttpOnly[1]. Rails already makes the session cookie HttpOnly, 
but given a general to keep Rails secure-by-default, it would probably be 
best if *all* cookies defaulted to HttpOnly. This would be a 
compatibility-breaking change, but it wouldn't be difficult to add a 
configuration option that can be defaulted to false for existing Rails apps 
that are upgraded.

I'm more than happy to write the code for this change, but wanted to 
discuss it here first to see if anyone objects strongly. Josh Peek had 
concerns with backwards compatibility, but I think my proposal above for a 
configuration option should satisfy them. Anyone care to weigh in?

[1] https://github.com/rails/rails/issues/1449

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-core/-/5j4eYHz-d1AJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to