Skip to content

Commit

Permalink
Add cors_allowed_origin env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
danielMoreirad committed Mar 22, 2024
1 parent 3ae95d7 commit 8d653a1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions api/arconnectmanager/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@

# Application definition

CORS_ALLOWED_ORIGINS = [
"http://localhost:5173",
"http://127.0.0.1:5173",
"https://arconnect.k8s.ing.he-arc.ch",
]
CORS_ALLOWED_ORIGINS = env.list('CORS_ALLOWED_ORIGINS')
#CORS_ALLOWED_ORIGINS = [
# "http://localhost:5173",
# "http://127.0.0.1:5173",
# "https://arconnect.k8s.ing.he-arc.ch",
#]

INSTALLED_APPS = [
"django.contrib.admin",
Expand Down

0 comments on commit 8d653a1

Please sign in to comment.