Skip to content

Commit

Permalink
#1 Correct CORS settings
Browse files Browse the repository at this point in the history
  • Loading branch information
SandraBergstrom committed Jun 21, 2023
1 parent bd56767 commit 0f564f3
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,6 @@
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

# if 'CLIENT_ORIGIN' in os.environ:
# CORS_ALLOWED_ORIGINS = [
# os.environ.get('CLIENT_ORIGIN')
# ]
# else:
# CORS_ALLOWED_ORIGIN_REGEXES = [
# r"^https://.*\.gitpod\.io$",
# ]

if 'CLIENT_ORIGIN' in os.environ:
CORS_ALLOWED_ORIGINS = [
os.environ.get('CLIENT_ORIGIN'),
Expand Down

0 comments on commit 0f564f3

Please sign in to comment.