Skip to content

Commit

Permalink
Update CSRF trusted origins
Browse files Browse the repository at this point in the history
  • Loading branch information
injoonH committed Jul 5, 2023
1 parent 58ba908 commit e707cd1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion ara/settings/dev/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
DEBUG = True

ALLOWED_HOSTS = ["*"]
CSRF_TRUSTED_ORIGINS = ["*"]
CSRF_TRUSTED_ORIGINS = [
"https://*.sparcs.org",
"http://localhost",
]

CORS_ORIGIN_ALLOW_ALL = True

Expand Down
4 changes: 2 additions & 2 deletions ara/settings/prod/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
]

CSRF_TRUSTED_ORIGINS = [
"newara.sparcs.org",
"ara.sparcs.org",
"https://newara.sparcs.org",
"https://ara.sparcs.org",
]

SSO_IS_BETA = False
Expand Down

0 comments on commit e707cd1

Please sign in to comment.