In the Rails application, you can easily set the secure cookie attribute in the session cookie when sending via HTTPS to ensure that the cookie has not leaked through a non-HTTP connection.
However, if the Rails application does NOT use HTTPS, but only HTTP, it does not seem to set a cookie at all.
Although this makes sense, in this case there is a separate front-end load balancer that is responsible for terminating the SSL connection. From an LB application to Rails, the connection is only HTTP.
How can I get the Rails app to set cookie secure even if I don’t use HTTPS?
security ruby-on-rails session-cookies
Avid
source share