commit a9fa46fb25038720253fff2127b2f70d1d88ba61
parent 85a627919f432330bbfddd6d088c0351de819db8
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date: Thu, 31 Oct 2024 21:46:34 +0100
fix: lax cookie required for API
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/users.php b/lib/users.php
@@ -72,7 +72,7 @@ function set_auth_cookie(
$cookie_content = "Set-Cookie: " .
"session=" . $user . "|" . $token . "; " .
"Domain=" . $_SERVER["SERVER_NAME"] . "; " .
- "SameSite=Strict;";
+ "SameSite=Lax;";
if ($cookie_time > 0) {
$cookie_content = $cookie_content .
"Max-Age=" . (60 * 60 * 24 * $cookie_time) . "; ";