Skip to content

Commit

Permalink
check origins again...
Browse files Browse the repository at this point in the history
  • Loading branch information
raprasad committed Aug 21, 2023
1 parent 4269029 commit 111dbf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions server/opendp_project/settings/azure_test_01.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
ASGI_APPLICATION = "opendp_project.asgi_azure.application"

# to test...
CORS_ALLOW_ALL_ORIGINS = True
CORS_ALLOWED_ORIGINS = False

#CORS_ALLOWED_ORIGINS = os.getenv('TRUSTED_ORIGINS', "TRUSTED_ORIGINS_ENV_VAR_MISSING").split(',')
CORS_ALLOWED_ORIGINS = os.getenv('TRUSTED_ORIGINS', "TRUSTED_ORIGINS_ENV_VAR_MISSING").split(',')
CSRF_TRUSTED_ORIGINS = os.getenv('TRUSTED_ORIGINS', "TRUSTED_ORIGINS_ENV_VAR_MISSING").split(',')

# Let nginx serve static files
Expand Down
2 changes: 1 addition & 1 deletion server/opendp_project/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def RELEASE_FILE_STORAGE():
DEFAULT_ALLOWED_HOSTS = '0.0.0.0,127.0.0.1,localhost,server'
ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS', DEFAULT_ALLOWED_HOSTS).split(',')

CORS_ORIGIN_ALLOW_ALL = False
CORS_ALLOWED_ORIGINS = False

CORS_ALLOWED_ORIGINS = (
# 'http://localhost:8000',
Expand Down

0 comments on commit 111dbf7

Please sign in to comment.