From 8ca3ed717c7f92c09eace7bd0af733a45b3e18a9 Mon Sep 17 00:00:00 2001
From: "J.-S. Caux" <J.S.Caux@uva.nl>
Date: Tue, 15 Sep 2020 17:51:37 +0200
Subject: [PATCH] Move CORS_ALLOWED_ORIGINS to base settings

---
 SciPost_v1/settings/base.py       | 6 ++++++
 SciPost_v1/settings/production.py | 6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/SciPost_v1/settings/base.py b/SciPost_v1/settings/base.py
index 97591964b..b889d8cd0 100644
--- a/SciPost_v1/settings/base.py
+++ b/SciPost_v1/settings/base.py
@@ -466,3 +466,9 @@ MAILGUN_API_KEY = ''
 # Get one at https://haveibeenpwned.com
 HAVE_I_BEEN_PWNED_TOKEN = get_secret('HAVE_I_BEEN_PWNED_TOKEN')
 HAVE_I_BEEN_PWNED_API_KEY = get_secret('HAVE_I_BEEN_PWNED_API_KEY')
+
+
+# CORS headers
+CORS_ALLOWED_ORIGINS = [
+    'https://scipost-codebases.org'
+]
diff --git a/SciPost_v1/settings/production.py b/SciPost_v1/settings/production.py
index 4ccda859d..f8b9247fe 100644
--- a/SciPost_v1/settings/production.py
+++ b/SciPost_v1/settings/production.py
@@ -72,9 +72,3 @@ sentry_sdk.init(
 )
 CSP_REPORT_URI = get_secret('CSP_SENTRY')
 CSP_REPORT_ONLY = False
-
-
-# CORS headers
-CORS_ALLOWED_ORIGINS = [
-    'https://scipost-codebases.org'
-]
-- 
GitLab