From e9bb9d0b6550888aadbee6c9f67c209feaf36b67 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Tue, 2 Apr 2024 18:07:29 -0500 Subject: [PATCH] new: Use samesite cookies --- actix/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/actix/src/main.rs b/actix/src/main.rs index ac6b443..cbeebd4 100644 --- a/actix/src/main.rs +++ b/actix/src/main.rs @@ -148,6 +148,7 @@ async fn main() -> std::io::Result<()> { App::new() .wrap( SessionMiddleware::builder(CookieSessionStore::default(), secret_key.clone()) + .cookie_same_site(actix_web::cookie::SameSite::Strict) .cookie_secure(false) .build(), )