mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Fixed private mode cookie for local development (#17938)
fixes #17514 - good explanation in https://github.com/TryGhost/Ghost/pull/17938#discussion_r1328157348 - fixes setting the private mode cookie in stricter browsers for local development
This commit is contained in:
parent
42973397a4
commit
f303eee8a4
1 changed files with 2 additions and 1 deletions
|
@ -55,7 +55,8 @@ const privateBlogging = {
|
|||
name: 'ghost-private',
|
||||
maxAge: constants.ONE_MONTH_MS,
|
||||
signed: false,
|
||||
sameSite: 'none'
|
||||
sameSite: urlUtils.isSSL(config.get('url')) ? 'none' : 'lax',
|
||||
secure: urlUtils.isSSL(config.get('url'))
|
||||
})(req, res, next);
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue