Skip to content

Commit

Permalink
Fixed private mode cookie for local development (#17938)
Browse files Browse the repository at this point in the history
fixes #17514

- good explanation in #17938 (comment)
- fixes setting the private mode cookie in stricter browsers for local development
  • Loading branch information
joe-blocher committed Oct 16, 2023
1 parent 4297339 commit f303eee
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -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);
},

Expand Down

0 comments on commit f303eee

Please sign in to comment.