Commit Graph

4 Commits (aafac8dc71221c9535adddc031bb8353f553505d)

Author SHA1 Message Date
Justin Tracey c9e8e1739c
replace all instances of "ends_with?" with "end_with?" ()
The "ends_with?" method is just a Rails alias of Ruby's "end_with?" method.
Using the latter makes the code less brittle.
Justin Tracey 3f8523130d
use host instead of headers to make Rack happy ()
"headers" is provided by Rails, Rack can't rely on it
Cecylia Bocovich 3447bd2f80
Monkey patch Rack::Session to send secure cookies to onions ()
Claire 21fb3f3684
Drop dependency on secure_headers, fix response headers ()
* Drop dependency on secure_headers, use always_write_cookie instead

* Fix cookies in Tor Hidden Services by moving configuration to application.rb

* Instead of setting always_write_cookie at boot, monkey-patch ActionDispatch