allow signin on local using non-production SameSite=Lax
This commit is contained in:
parent
e661beabdc
commit
5399c1941c
1 changed files with 7 additions and 1 deletions
|
@ -17,7 +17,13 @@ function setCookie(name, value, expirationDaysOnWeb) {
|
|||
expires = `expires=${IS_WEB ? date.toUTCString() : maxExpiration};`;
|
||||
}
|
||||
|
||||
let cookie = `${name}=${value || ''}; ${expires} path=/; SameSite=None;`;
|
||||
let cookie = `${name}=${value || ''}; ${expires} path=/;`;
|
||||
if (isProduction) {
|
||||
cookie += ` SameSite=None;`;
|
||||
}
|
||||
if (!isProduction) {
|
||||
cookie += ` SameSite=Lax;`;
|
||||
}
|
||||
if (isProduction) {
|
||||
cookie += ` domain=${domain}; Secure;`;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue