From 3d8803a54bd40d0ec45a47dca499164f470dec47 Mon Sep 17 00:00:00 2001 From: Alexander Schulz Date: Sat, 31 Aug 2024 12:46:16 +0200 Subject: [PATCH] added CSRF Trusted origins instead csrf test failes after reverse proxy --- testapp/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/testapp/settings.py b/testapp/settings.py index 60e0f48..14573bc 100644 --- a/testapp/settings.py +++ b/testapp/settings.py @@ -71,6 +71,7 @@ TEMPLATES = [ WSGI_APPLICATION = 'testapp.wsgi.application' +CSRF_TRUSTED_ORIGINS = ['https://develop.artemisneo.com'] # Database # https://docs.djangoproject.com/en/5.1/ref/settings/#databases