From 0f564f309f06f2f71ec6f064067b884e43c20a40 Mon Sep 17 00:00:00 2001 From: SandraBergstrom Date: Wed, 21 Jun 2023 09:11:35 +0000 Subject: [PATCH] #1 Correct CORS settings --- backend/settings.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/backend/settings.py b/backend/settings.py index cc775c0..4a7c579 100644 --- a/backend/settings.py +++ b/backend/settings.py @@ -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'),