Skip to content

Commit

Permalink
Fixed: Set cookie in privateBlogging - Update middleware.js
Browse files Browse the repository at this point in the history
"Make this site private" - not working in Chrome and Opera
Closes TryGhost#17514
  • Loading branch information
joe-blocher committed Sep 2, 2023
1 parent 355a033 commit acad566
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 acad566

Please sign in to comment.