From b1d4f4e0940c42654c234ed63ddf0a351e65c5fa Mon Sep 17 00:00:00 2001 From: altf4arnold Date: Tue, 26 Mar 2024 22:30:07 +0100 Subject: [PATCH] CSRF --- config.example.py | 2 ++ tldtest/settings.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/config.example.py b/config.example.py index 7776b25..2ef8ae1 100644 --- a/config.example.py +++ b/config.example.py @@ -7,3 +7,5 @@ DBUSER = "tldtest" DBPASSWORD = "clubmate2010" + +CSRF_TRUSTED_ORIGINS = [] diff --git a/tldtest/settings.py b/tldtest/settings.py index 50733fe..8e9cd30 100644 --- a/tldtest/settings.py +++ b/tldtest/settings.py @@ -27,6 +27,8 @@ ALLOWED_HOSTS = config.ALLOWED_HOSTS +CSRF_TRUSTED_ORIGINS = config.CSRF_TRUSTED_ORIGINS + # Application definition INSTALLED_APPS = [