Skip to content

Commit

Permalink
fix: change SameSite attribute to Lax
Browse files Browse the repository at this point in the history
  • Loading branch information
kenken714 committed Oct 29, 2024
1 parent 44790fc commit bbd9476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handler/authentication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ pub async fn login(
let mut headers = HeaderMap::new();
headers.insert(
SET_COOKIE,
format!("session_id={}; HttpOnly; SameSite=Strict", session_id)
format!("session_id={}; HttpOnly; SameSite=Lax", session_id)
.parse()
.map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?,
);
Expand Down

0 comments on commit bbd9476

Please sign in to comment.