From a948215538c82a7ba6289f79d95c2ba27245caef Mon Sep 17 00:00:00 2001 From: spinline Date: Sat, 7 Feb 2026 15:38:56 +0300 Subject: [PATCH] Change cookie SameSite policy to Lax to fix login redirection issue --- backend/src/handlers/auth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/handlers/auth.rs b/backend/src/handlers/auth.rs index 54baa23..1dd0272 100644 --- a/backend/src/handlers/auth.rs +++ b/backend/src/handlers/auth.rs @@ -74,7 +74,7 @@ pub async fn login_handler( let cookie = Cookie::build(("auth_token", token)) .path("/") .http_only(true) - .same_site(SameSite::Strict) + .same_site(SameSite::Lax) .max_age(Duration::seconds(expires_in)) .build();