Skip to content

Commit

Permalink
Add CORS header exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
code-geek committed Dec 6, 2023
1 parent 4daaece commit 4328f3f
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,28 @@
"django_extensions",
]
THIRD_PARTY_APPS = [
"crispy_forms",
"crispy_bootstrap5",
"allauth",
"allauth.account",
"allauth.socialaccount",
"allauth",
"corsheaders",
"crispy_bootstrap5",
"crispy_forms",
"django_celery_beat",
"rest_framework",
"rest_framework_datatables",
"rest_framework",
]

CORS_ALLOWED_ORIGINS = [
"http://localhost:3000",
"http://sde-lrm.nasa-impact.net",
"https://sde-qa.nasa-impact.net",
"https://sciencediscoveryengine.test.nasa.gov",
"https://sciencediscoveryengine.nasa.gov",
"http://sde-qa.nasa-impact.net",
"http://sciencediscoveryengine.test.nasa.gov",
"http://sciencediscoveryengine.nasa.gov",
"https://localhost:4200",
"http://localhost:4200",
]

LOCAL_APPS = ["sde_indexing_helper.users", "sde_collections", "feedback"]
Expand Down

0 comments on commit 4328f3f

Please sign in to comment.