From 916e3694c654151f5fae73e4692ee0f589bc6b9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Tue, 9 Aug 2022 14:58:51 +0200 Subject: [PATCH] Get CSRF_TRUSTED_ORIGINS from env. --- src/project/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/project/settings.py b/src/project/settings.py index cf237df..14691fb 100644 --- a/src/project/settings.py +++ b/src/project/settings.py @@ -16,6 +16,7 @@ SECRET_KEY = env.str("SECRET_KEY", default="something-very-secret") DEBUG = env.bool("DEBUG", default=False) ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=["*"]) +CSRF_TRUSTED_ORIGINS = env.list("CSRF_TRUSTED_ORIGINS", default=["*"]) ADMINS = [tuple(x.split(":")) for x in env.list("DJANGO_ADMINS", default=[])]