mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-15 03:01:37 -05:00
🐛 Fixed session auth for blogs running on sub dir (#9986)
closes #9982 This adds the subdirectory to the path for the session cookie, enabling cookies to be sent/set/parsed for the session authentication to work.
This commit is contained in:
parent
f8d244f060
commit
71160da3b5
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ const getSession = (req, res, next) => {
|
|||
cookie: {
|
||||
maxAge: constants.SIX_MONTH_MS,
|
||||
httpOnly: true,
|
||||
path: '/ghost',
|
||||
path: urlService.utils.getSubdir() + '/ghost',
|
||||
sameSite: 'lax',
|
||||
secure: urlService.utils.isSSL(config.get('url'))
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue