From a10b0c9ebfef7885a90014e15d7f56d5fc2d4f40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Martin=20Fr=C3=B8berg=20Wang?= <tmwang@stud.ntnu.no> Date: Fri, 5 Mar 2021 12:12:45 +0000 Subject: [PATCH] Update CORS policy --- backend/secfit/secfit/settings.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/secfit/secfit/settings.py b/backend/secfit/secfit/settings.py index e9e6d12..f983f12 100644 --- a/backend/secfit/secfit/settings.py +++ b/backend/secfit/secfit/settings.py @@ -115,9 +115,10 @@ else: # CORS Policy -CORS_ORIGIN_ALLOW_ALL = ( - True -) +#CORS_ORIGIN_ALLOW_ALL = ( +# True +#) +CORS_ALLOW_ALL_ORIGINS = True # Internationalization # https://docs.djangoproject.com/en/3.1/topics/i18n/ -- GitLab