mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-11-22 01:06:46 +00:00
new: Use samesite cookies
This commit is contained in:
parent
ca14c02e70
commit
e9bb9d0b65
@ -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(),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user