diff options
author | mia <mia@mia.jetzt> | 2024-04-23 19:19:59 -0700 |
---|---|---|
committer | mia <mia@mia.jetzt> | 2024-04-23 19:19:59 -0700 |
commit | aa9b10731fdb72d58c94d2f2221cc740023b6e39 (patch) | |
tree | c219f5c169a4badf851fe8beeaff4818f5f285ba /src | |
parent | b9c1ac1c070f19295c79ad21a7eddf20ea42a49b (diff) | |
download | dissociate-aa9b10731fdb72d58c94d2f2221cc740023b6e39.tar.gz dissociate-aa9b10731fdb72d58c94d2f2221cc740023b6e39.zip |
set samesite to none v0.2.1
Diffstat (limited to 'src')
-rw-r--r-- | src/server/login.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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); |