Skip to content

Commit

Permalink
Merge pull request #2276 from manyfold3d/remember-cookie-respect-https
Browse files Browse the repository at this point in the history
Make the "remember me" cookie HTTPS-only if appropriate
  • Loading branch information
Floppy authored Jun 18, 2024
2 parents a918824 + fd308ae commit 26a1fff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@

# Options to be passed to the created cookie. For instance, you can set
# secure: true in order to force SSL only cookies.
# config.rememberable_options = {}
config.rememberable_options = {secure: (ENV.fetch("HTTPS_ONLY", nil) === "enabled")}

# ==> Configuration for :timeoutable
# The time you want to timeout the user session without activity. After this
Expand Down

0 comments on commit 26a1fff

Please sign in to comment.