From 97f60bdf6679353bfcdd7fdeaa86edcddb9db339 Mon Sep 17 00:00:00 2001 From: Matti Eiden Date: Wed, 24 Apr 2024 11:40:50 +0300 Subject: [PATCH] chore: add CSP_REPORT_ONLY setting --- open_city_profile/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/open_city_profile/settings.py b/open_city_profile/settings.py index 3072b0e6..6fb75f3e 100644 --- a/open_city_profile/settings.py +++ b/open_city_profile/settings.py @@ -76,6 +76,7 @@ CSP_IMG_SRC=(str, None), CSP_STYLE_SRC=(str, None), CSP_SCRIPT_SRC=(str, None), + CSP_REPORT_ONLY=(bool, False), CSP_REPORT_URI=(str, None), ) if os.path.exists(env_file): @@ -404,4 +405,5 @@ CSP_IMG_SRC = env.str("CSP_IMG_SRC") CSP_STYLE_SRC = env.str("CSP_STYLE_SRC") CSP_SCRIPT_SRC = env.str("CSP_SCRIPT_SRC") +CSP_REPORT_ONLY = env.bool("CSP_REPORT_ONLY") CSP_REPORT_URI = env.str("CSP_REPORT_URI")