mirror of
https://github.com/SinTan1729/chhoto-url
synced 2024-12-26 07:38:36 -06:00
new: Use samesite cookies
This commit is contained in:
parent
ca14c02e70
commit
e9bb9d0b65
1 changed files with 1 additions and 0 deletions
|
@ -148,6 +148,7 @@ async fn main() -> std::io::Result<()> {
|
||||||
App::new()
|
App::new()
|
||||||
.wrap(
|
.wrap(
|
||||||
SessionMiddleware::builder(CookieSessionStore::default(), secret_key.clone())
|
SessionMiddleware::builder(CookieSessionStore::default(), secret_key.clone())
|
||||||
|
.cookie_same_site(actix_web::cookie::SameSite::Strict)
|
||||||
.cookie_secure(false)
|
.cookie_secure(false)
|
||||||
.build(),
|
.build(),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue