Skip to content

Commit

Permalink
Merge pull request #1023 from mvz/secure-session-cookie
Browse files Browse the repository at this point in the history
Force session cookie to be secure in production
  • Loading branch information
mvz committed Oct 10, 2021
2 parents 5d3f4d1 + 4f70975 commit 8c39915
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/initializers/session_store.rb
Expand Up @@ -2,4 +2,6 @@

# Be sure to restart your server when you modify this file.

Rails.application.config.session_store :active_record_store, key: "_publify_blog_session"
Rails.application.config.session_store(:active_record_store,
key: "_publify_blog_session",
secure: Rails.env.production?)

0 comments on commit 8c39915

Please sign in to comment.