Skip to content

Commit

Permalink
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
1 parent 5d3f4d1 commit 4f70975
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 4f70975

Please sign in to comment.