SDA-4117 Define path field on created cookies

This commit is contained in:
sbenmoussati 2023-03-20 10:45:24 +01:00
parent c204d875f7
commit b1256e3ec6

View File

@ -131,6 +131,7 @@ class ProtocolHandler {
httpOnly: true,
sameSite: 'no_restriction',
domain: cookieDomain,
path: '/',
};
const csrfCookie: CookiesSetDetails = {
url,
@ -139,6 +140,7 @@ class ProtocolHandler {
secure: true,
sameSite: 'no_restriction',
domain: cookieDomain,
path: '/',
};
try {
await session.defaultSession.cookies.set(skeyCookie);