Skip to content

Commit

Permalink
🐛[maykinmedia/mozilla-django-oidc-db#116] set session cookie same sit…
Browse files Browse the repository at this point in the history
…e default to Lax
  • Loading branch information
Coperh committed Sep 18, 2024
1 parent 9ef90bb commit 49656bd
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 49656bd

Please sign in to comment.