Skip to content

Commit

Permalink
Merge pull request #72 from maykinmedia/feature/odic-samesite-quickfix
Browse files Browse the repository at this point in the history
🐛 set session cookie same site default to Lax
  • Loading branch information
Coperh authored Sep 18, 2024
2 parents 9ef90bb + 49656bd commit 0939eb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion open_api_framework/conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,11 +549,12 @@
SESSION_COOKIE_HTTPONLY = True
SESSION_COOKIE_SAMESITE = config(
"SESSION_COOKIE_SAMESITE",
"Strict",
"Lax",
help_text=(
"The value of the SameSite flag on the session cookie. This flag prevents the "
"cookie from being sent in cross-site requests thus preventing CSRF attacks and "
"making some methods of stealing session cookie impossible."
"Currently interferes with OIDC. Keep the value set at Lax if used."
),
)

Expand Down

0 comments on commit 0939eb4

Please sign in to comment.