mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-09-11 20:57:21 +03: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
@ -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…
Reference in New Issue
Block a user