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