lax cookie samesite

This commit is contained in:
Paul Zinselmeyer 2023-04-25 16:50:50 +02:00
parent 428399951c
commit 29689243f4
Signed by: pfzetto
GPG key ID: 4EEF46A5B276E648

View file

@ -236,7 +236,7 @@ where
fn create_cookie(login_session: String) -> Cookie<'static> { fn create_cookie(login_session: String) -> Cookie<'static> {
let mut cookie = Cookie::new(LOGIN_COOKIE_NAME, login_session); 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_secure(true);
cookie.set_http_only(true); cookie.set_http_only(true);
cookie cookie