🐛 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:
Kevin Ansfield 2020-04-15 10:51:47 +01:00
parent da237ca885
commit 8d0a6b2674

View File

@ -43,7 +43,8 @@ const privateBlogging = {
return session({
maxAge: constants.ONE_MONTH_MS,
signed: false
signed: false,
sameSite: 'none'
})(req, res, next);
},