Re: [Rails-core] Re: Shouldn't Rails add the secure flag automatically for the cookie store when request.ssl?

2016-09-08 Thread Rodrigo Rosenfeld Rosas
Unfortunately this won't work for the cases where the same application serves multiple domains but only some of them have an SSL certificate. Also it can't be enabled by default since not everyone is serving over HTTPS. What I suggested can be enabled by default out of the box improving security a

[Rails-core] Re: Shouldn't Rails add the secure flag automatically for the cookie store when request.ssl?

2016-09-07 Thread Florian Wininger
Hi, if you want to use only HTTPS with all secure options, I recommend you to uncomment the default production environment option in config/environments/production.rb : # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # config.force_ssl = true