mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-24 21:31:12 +00:00
Changing sameSite cookie from Strict to Lax. (#2677)
- Fixes #2666 - Fixes #2601
This commit is contained in:
parent
d4b6f29729
commit
8c68ee450e
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ import { authCookieName } from "../../config";
|
||||||
export default function clearAuthCookie() {
|
export default function clearAuthCookie() {
|
||||||
document.cookie = cookie.serialize(authCookieName, "", {
|
document.cookie = cookie.serialize(authCookieName, "", {
|
||||||
maxAge: -1,
|
maxAge: -1,
|
||||||
sameSite: true,
|
sameSite: "lax",
|
||||||
path: "/",
|
path: "/",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ export default function setAuthCookie(jwt: string) {
|
||||||
document.cookie = cookie.serialize(authCookieName, jwt, {
|
document.cookie = cookie.serialize(authCookieName, jwt, {
|
||||||
maxAge: 365 * 24 * 60 * 60 * 1000,
|
maxAge: 365 * 24 * 60 * 60 * 1000,
|
||||||
secure: isHttps(),
|
secure: isHttps(),
|
||||||
sameSite: true,
|
sameSite: "lax",
|
||||||
path: "/",
|
path: "/",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue