diff options
-rw-r--r-- | Cargo.lock | 2 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/server/login.rs | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Cargo.lock b/Cargo.lock index 9f0d6fc..6f683c5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -488,7 +488,7 @@ dependencies = [ [[package]] name = "dissociate" -version = "0.2.0" +version = "0.2.1" dependencies = [ "argon2", "axum", diff --git a/Cargo.toml b/Cargo.toml index 319d190..af22a6f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dissociate" -version = "0.2.0" +version = "0.2.1" edition = "2021" [dependencies] 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); |