From 50d9c603bd3bfde67abcf17c6e10c181fa069879 Mon Sep 17 00:00:00 2001 From: marwin Date: Mon, 16 Mar 2026 19:58:18 +0100 Subject: [PATCH] Add CSRF_TRUSTED_ORIGINS from environment --- diora/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/diora/settings.py b/diora/settings.py index 53a5c0d..b25c940 100644 --- a/diora/settings.py +++ b/diora/settings.py @@ -12,6 +12,8 @@ DEBUG = os.environ.get('DEBUG', 'True') == 'True' ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', 'localhost 127.0.0.1').split() +CSRF_TRUSTED_ORIGINS = os.environ.get('CSRF_TRUSTED_ORIGINS', '').split() + INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth',