🐛 Fixed "View site" not logging into private sites with separate admin domains
no issue - browsers now block cross-origin cookies unless they are explicitly set with `SameSite=none` and `Secure=true` options which was preventing the login request made by Ghost-Admin from working - added an explicit `SameSite=none` option to the private site session cookie - will only work when the front-end site is served over HTTPS - there's no way to get browsers to accept cross-origin cookies over HTTP
This commit is contained in:
parent
da237ca885
commit
8d0a6b2674
@ -43,7 +43,8 @@ const privateBlogging = {
|
||||
|
||||
return session({
|
||||
maxAge: constants.ONE_MONTH_MS,
|
||||
signed: false
|
||||
signed: false,
|
||||
sameSite: 'none'
|
||||
})(req, res, next);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user