Merge pull request #1801 from sbenmoussati/bugfix/SDA-4117-main

SDA-4117 Define path field on created cookies
This commit is contained in:
NguyenTranHoangSym 2023-04-03 15:17:26 +07:00 committed by GitHub
commit 4c79cc8c14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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