Adopt session cookie configuration for remember me cookie (#12938)
This commit is contained in:
parent
45c0d84e48
commit
cc2b76f7e4
1 changed files with 1 additions and 1 deletions
|
|
@ -211,7 +211,7 @@ Devise.setup do |config|
|
|||
|
||||
# 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: ApplicationConfig["FORCE_SSL_IN_RAILS"] == "true", same_site: :lax }
|
||||
|
||||
# ==> Configuration for :validatable
|
||||
# Range for password length.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue