From eeef839c4f6effe9d68f4c628533f421de6470bc Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Wed, 15 Nov 2023 19:21:43 +0100 Subject: [PATCH] =?UTF-8?q?On=20assure=20le=20debug=20m=C3=AAme=20sur=20le?= =?UTF-8?q?=20serveur=20de=20prod?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/settings/base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/agenda_culturel/settings/base.py b/src/agenda_culturel/settings/base.py index 17ae87a..a23d930 100644 --- a/src/agenda_culturel/settings/base.py +++ b/src/agenda_culturel/settings/base.py @@ -17,6 +17,9 @@ ALLOWED_HOSTS = os_getenv("ALLOWED_HOSTS", "localhost").split(",") if DEBUG: + CSRF_TRUSTED_ORIGINS = os_getenv("CSRF_TRUSTED_ORIGINS", "http://localhost").split( + "," + ) CORS_ORIGIN_ALLOW_ALL = True else: CSRF_TRUSTED_ORIGINS = os_getenv("CSRF_TRUSTED_ORIGINS", "http://localhost").split(