mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-24 15:26:27 +00:00
Changing sameSite cookie from Strict to Lax. (#2677)
- Fixes #2666 - Fixes #2601
This commit is contained in:
parent
d4b6f29729
commit
8c68ee450e
|
@ -4,7 +4,7 @@ import { authCookieName } from "../../config";
|
|||
export default function clearAuthCookie() {
|
||||
document.cookie = cookie.serialize(authCookieName, "", {
|
||||
maxAge: -1,
|
||||
sameSite: true,
|
||||
sameSite: "lax",
|
||||
path: "/",
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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: "/",
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue