Skip to content

Commit 284981e

Browse files
committed
fix(cookie): change SameSite attribute from Strict to Lax for cookie headers
1 parent 9448969 commit 284981e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/utils/backend.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function setAuthCookieHeaders(token: string, maxAgeSeconds = DEFAULT_SESS
3434
`${SESSION_COOKIE}=${encodeURIComponent(token)}`,
3535
"Path=/",
3636
"HttpOnly",
37-
"SameSite=Strict",
37+
"SameSite=Lax",
3838
];
3939
if (COOKIE_SECURE) attrs.push("Secure");
4040
if (Number.isFinite(maxAgeSeconds) && maxAgeSeconds > 0) {
@@ -48,7 +48,7 @@ export function clearAuthCookieHeaders(): HeadersInit {
4848
`${SESSION_COOKIE}=`,
4949
"Path=/",
5050
"HttpOnly",
51-
"SameSite=Strict",
51+
"SameSite=Lax",
5252
"Max-Age=0",
5353
];
5454
if (COOKIE_SECURE) attrs.push("Secure");

0 commit comments

Comments
 (0)