From 9810cec426d63178da4a0de71db4d11894fe6410 Mon Sep 17 00:00:00 2001
From: Neda Moeini <neda.moeini@geant.org>
Date: Thu, 9 Jan 2025 11:34:43 +0100
Subject: [PATCH] Update CSRF_TRUSTED_ORIGINS to get the data from env

---
 sage_validation/settings.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sage_validation/settings.py b/sage_validation/settings.py
index 66c73f1..5bf2163 100644
--- a/sage_validation/settings.py
+++ b/sage_validation/settings.py
@@ -131,4 +131,4 @@ STATICFILES_DIRS = [
 MEDIA_ROOT = os.getenv("MEDIA_ROOT", BASE_DIR / "media")
 MEDIA_URL = '/media/'
 
-CSRF_TRUSTED_ORIGINS = ALLOWED_HOSTS
\ No newline at end of file
+CSRF_TRUSTED_ORIGINS = os.getenv("CSRF_TRUSTED_ORIGINS", "").split(",")
-- 
GitLab