From abaf629b3ca2464657c9ef5a9db31a82b8e13613 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mih=C3=A1lik?= Date: Fri, 13 Dec 2024 21:40:23 +0100 Subject: [PATCH] Test environment CSRF fix --- webstrom/settings_test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webstrom/settings_test.py b/webstrom/settings_test.py index ff1830b..5622270 100644 --- a/webstrom/settings_test.py +++ b/webstrom/settings_test.py @@ -9,6 +9,10 @@ "test.strom.sk", ] +CSRF_TRUSTED_ORIGINS = [ + "https://test.strom.sk", +] + USE_X_FORWARDED_HOST = True SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")