🗝
summary refs log tree commit diff
path: root/src/server
diff options
context:
space:
mode:
authormia <mia@mia.jetzt>2024-04-23 19:19:59 -0700
committermia <mia@mia.jetzt>2024-04-23 19:19:59 -0700
commitaa9b10731fdb72d58c94d2f2221cc740023b6e39 (patch)
treec219f5c169a4badf851fe8beeaff4818f5f285ba /src/server
parentb9c1ac1c070f19295c79ad21a7eddf20ea42a49b (diff)
downloaddissociate-0.2.1.tar.gz
dissociate-0.2.1.zip
set samesite to none v0.2.1
Diffstat (limited to 'src/server')
-rw-r--r--src/server/login.rs4
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);