Skip to content

Commit

Permalink
Allow CSRF cookie to be sent with cross-site requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurocon committed Feb 17, 2025
1 parent 3cd3835 commit d09d74e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions amelie/settings/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,9 @@
# Cookies are allowed to be included in cross-site HTTP requests.
# Required to pass CSRF tokens and session information from frontend to backend
CORS_ALLOW_CREDENTIALS = True
# Send the CSRF cookie with both same-site and cross-site requests
# Required to pass CSRF tokens and session information from frontend to backend
CSRF_COOKIE_SAMESITE = "None"

# GraphQL API settings
GRAPHENE = {
Expand Down

0 comments on commit d09d74e

Please sign in to comment.