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 | |
parent | b9c1ac1c070f19295c79ad21a7eddf20ea42a49b (diff) | |
download | dissociate-0.2.1.tar.gz dissociate-0.2.1.zip |
set samesite to none v0.2.1
-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); |