From f56d94bee5a09dce92221f58f34b25b79c95913c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tobias=20=C3=98rstad?= <tobiasio@ntnu.no>
Date: Fri, 5 Mar 2021 14:47:54 +0100
Subject: [PATCH] Update settings.py

---
 backend/secfit/secfit/settings.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/backend/secfit/secfit/settings.py b/backend/secfit/secfit/settings.py
index e844069..bea2b5d 100644
--- a/backend/secfit/secfit/settings.py
+++ b/backend/secfit/secfit/settings.py
@@ -44,7 +44,7 @@ ALLOWED_HOSTS = [
     "molde.idi.ntnu.no",
     "10.0.2.2",
     "secfit-1-backend.herokuapp.com",
-    "secfit-1-frontend.herokuapp.com/"
+    "secfit-1-frontend.herokuapp.com"
 ]
 
 # Application definition
@@ -116,7 +116,11 @@ else:
 
 
 # CORS Policy
-CORS_ORIGIN_ALLOW_ALL = True
+CORS_ALLOW_ALL_ORIGINS = True
+CORS_ORIGIN_ALLOW_ALL = (
+    True
+)
+
 
 
 # Internationalization
-- 
GitLab