(core) For grist_sid*_status cookie, remember to set the path

Test Plan: Only tested manually that path is included.

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D3056
This commit is contained in:
Dmitry S 2021-10-03 17:27:22 -04:00
parent d4626aea82
commit 7e07f0ce56

View File

@ -529,6 +529,7 @@ export function signInStatusMiddleware(req: Request, resp: Response, next: NextF
httpOnly: false, // make available to client-side scripts httpOnly: false, // make available to client-side scripts
expires, expires,
domain: getCookieDomain(req), domain: getCookieDomain(req),
path: '/',
sameSite: 'lax', // same setting as for grist-sid is fine here. sameSite: 'lax', // same setting as for grist-sid is fine here.
})); }));
} }