chore: cookies with "secure" flag (only transmitted through https)
This commit is contained in:
parent
b3ccfc16c4
commit
1eb0bdb4ae
6 changed files with 10 additions and 7 deletions
|
@ -8,7 +8,8 @@ module TrustedDeviceConcern
|
|||
cookies.encrypted[TRUSTED_DEVICE_COOKIE_NAME] = {
|
||||
value: JSON.generate({ created_at: start_at }),
|
||||
expires: start_at + TRUSTED_DEVICE_PERIOD,
|
||||
httponly: true
|
||||
httponly: true,
|
||||
secure: Rails.env.production?
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue