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