new: Use samesite cookies

This commit is contained in:
SinTan1729 2024-04-02 18:07:29 -05:00
parent ca14c02e70
commit e9bb9d0b65
No known key found for this signature in database
GPG Key ID: EB3E68BFBA25C85F

View File

@ -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(),
)