Skip to content

Commit

Permalink
Add CSRF_TRUSTED_ORIGINS
Browse files Browse the repository at this point in the history
  • Loading branch information
TriangleYJ committed Jul 5, 2023
1 parent 6f062ec commit 58ba908
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions ara/settings/dev/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
DEBUG = True

ALLOWED_HOSTS = ["*"]
CSRF_TRUSTED_ORIGINS = ["*"]

CORS_ORIGIN_ALLOW_ALL = True

Expand Down
5 changes: 5 additions & 0 deletions ara/settings/prod/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"ara.sparcs.org",
]

CSRF_TRUSTED_ORIGINS = [
"newara.sparcs.org",
"ara.sparcs.org",
]

SSO_IS_BETA = False

SESSION_COOKIE_SAMESITE = "Lax"
Expand Down

0 comments on commit 58ba908

Please sign in to comment.