Skip to content

Commit

Permalink
Merge pull request #47 from maykinmedia/feature/45-same-site-options
Browse files Browse the repository at this point in the history
🔧[#45] add session and CSRF samesite option
  • Loading branch information
Coperh authored Aug 13, 2024
2 parents 4340bf4 + a49870b commit a965065
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions open_api_framework/conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,10 @@
#
SESSION_COOKIE_SECURE = IS_HTTPS
SESSION_COOKIE_HTTPONLY = True
SESSION_COOKIE_SAMESITE = config("SESSION_COOKIE_SAMESITE", "Strict")

CSRF_COOKIE_SECURE = IS_HTTPS
CSRF_COOKIE_SAMESITE = config("CSRF_COOKIE_SAMESITE", "Strict")

X_FRAME_OPTIONS = "DENY"

Expand Down

0 comments on commit a965065

Please sign in to comment.