From 29689243f487207da6d5ce5bfa3e3548ca14a4da Mon Sep 17 00:00:00 2001 From: Paul Z Date: Tue, 25 Apr 2023 16:50:50 +0200 Subject: [PATCH] lax cookie samesite --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 3cffc4e..e10fa4f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -236,7 +236,7 @@ where fn create_cookie(login_session: String) -> Cookie<'static> { let mut cookie = Cookie::new(LOGIN_COOKIE_NAME, login_session); - cookie.set_same_site(SameSite::None); + cookie.set_same_site(SameSite::Lax); cookie.set_secure(true); cookie.set_http_only(true); cookie