lax cookie samesite
This commit is contained in:
parent
428399951c
commit
29689243f4
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ where
|
||||||
|
|
||||||
fn create_cookie(login_session: String) -> Cookie<'static> {
|
fn create_cookie(login_session: String) -> Cookie<'static> {
|
||||||
let mut cookie = Cookie::new(LOGIN_COOKIE_NAME, login_session);
|
let mut cookie = Cookie::new(LOGIN_COOKIE_NAME, login_session);
|
||||||
cookie.set_same_site(SameSite::None);
|
cookie.set_same_site(SameSite::Lax);
|
||||||
cookie.set_secure(true);
|
cookie.set_secure(true);
|
||||||
cookie.set_http_only(true);
|
cookie.set_http_only(true);
|
||||||
cookie
|
cookie
|
||||||
|
|
Reference in a new issue