Changing sameSite cookie from Strict to Lax. (#2677)

- Fixes #2666
- Fixes #2601
This commit is contained in:
Dessalines 2024-08-27 15:31:31 -04:00 committed by GitHub
parent d4b6f29729
commit 8c68ee450e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ import { authCookieName } from "../../config";
export default function clearAuthCookie() {
document.cookie = cookie.serialize(authCookieName, "", {
maxAge: -1,
sameSite: true,
sameSite: "lax",
path: "/",
});
}

View file

@ -6,7 +6,7 @@ export default function setAuthCookie(jwt: string) {
document.cookie = cookie.serialize(authCookieName, jwt, {
maxAge: 365 * 24 * 60 * 60 * 1000,
secure: isHttps(),
sameSite: true,
sameSite: "lax",
path: "/",
});
}