From aa9b10731fdb72d58c94d2f2221cc740023b6e39 Mon Sep 17 00:00:00 2001 From: mia Date: Tue, 23 Apr 2024 19:19:59 -0700 Subject: set samesite to none --- src/server/login.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server') diff --git a/src/server/login.rs b/src/server/login.rs index f9cee70..8353317 100644 --- a/src/server/login.rs +++ b/src/server/login.rs @@ -90,7 +90,7 @@ async fn handle_login_post( cookie.set_http_only(true); cookie.set_max_age(Duration::from_secs(60 * 60 * 24 * 29).try_into().ok()); cookie.set_path("/"); - cookie.set_same_site(SameSite::Strict); + cookie.set_same_site(SameSite::None); cookie.set_secure(true); if let Some(cookie_domain) = cookie_domain { cookie.set_domain(cookie_domain); @@ -198,7 +198,7 @@ async fn handle_invite_post( cookie.set_http_only(true); cookie.set_max_age(Duration::from_secs(60 * 60 * 24 * 29).try_into().ok()); cookie.set_path("/"); - cookie.set_same_site(SameSite::Strict); + cookie.set_same_site(SameSite::None); cookie.set_secure(true); if let Some(cookie_domain) = cookie_domain { cookie.set_domain(cookie_domain); -- cgit 1.4.1