Skip to content

Commit

Permalink
[CHA] adjust settings to be used as a separate container in another p…
Browse files Browse the repository at this point in the history
…roject
  • Loading branch information
dameyerdave committed Dec 7, 2023
1 parent dd5963d commit 67c4d8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/app/ena_upload_ms/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@
###
# SECURITY
###
ALLOWED_HOSTS = environ.get("DJANGO_ALLOWED_HOSTS").split(",")
ALLOWED_HOSTS = environ.get("DJANGO_ALLOWED_HOSTS", "*").split(",")

# CORS configuration
CORS_ALLOW_ALL_ORIGINS = False
CORS_ALLOWED_ORIGINS = environ.get("DJANGO_CORS_ALLOWED_ORIGINS").split(",")
CORS_ALLOW_ALL_ORIGINS = True
CORS_ALLOWED_ORIGINS = environ.get("DJANGO_CORS_ALLOWED_ORIGINS", "").split(",")
CORS_ALLOW_HEADERS = default_headers + (
"cache-control",
"pragma",
Expand All @@ -192,7 +192,7 @@
CORS_ALLOW_CREDENTIALS = True

# CSRF configuration
CSRF_TRUSTED_ORIGINS = environ.get("DJANGO_CSRF_TRUSTED_ORIGINS").split(",")
CSRF_TRUSTED_ORIGINS = environ.get("DJANGO_CSRF_TRUSTED_ORIGINS", "").split(",")
CSRF_USE_SESSIONS = False
CSRF_COOKIE_HTTPONLY = False
CSRF_COOKIE_SAMESITE = "Strict"
Expand Down

0 comments on commit 67c4d8d

Please sign in to comment.