Skip to content

Commit

Permalink
Revert "Revert "Fixed private mode cookie for local development (#17938
Browse files Browse the repository at this point in the history
…)" (#19298)"

This reverts commit c969dd1.
  • Loading branch information
ronaldlangeveld committed Dec 11, 2023
1 parent c969dd1 commit 747259b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
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 747259b

Please sign in to comment.