Skip to content

Commit

Permalink
Add concord.org to CSRF trusted origins
Browse files Browse the repository at this point in the history
This will allow requests from embedded instances of MMW
from inside concord.org to succeed.

Refs #3499
  • Loading branch information
rajadain committed Mar 9, 2022
1 parent 40888b9 commit 3e779ed
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/mmw/mmw/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,12 @@
# django-cookies-samesite
SESSION_COOKIE_SAMESITE = 'None' # Allows for cross site embedding into LARA
SESSION_COOKIE_SECURE = True # Only set cookies in HTTPS connections

# CSRF
CSRF_TRUSTED_ORIGINS = [
'.modelmywatershed.org',
'.concord.org'
]

CSRF_COOKIE_SAMESITE = 'None' # Allow for embedding into Concord
CSRF_COOKIE_SECURE = True # Only set cookies in HTTPS connections

0 comments on commit 3e779ed

Please sign in to comment.