From e51986454351eec33ea85864f5e7dc0a8facac4f Mon Sep 17 00:00:00 2001 From: Stephen Kershaw Date: Sat, 25 Jan 2025 17:45:35 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=92=EF=B8=8F=20fix(CSP):=20improve=20C?= =?UTF-8?q?SP=20coverage=20(#471)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/partials/header.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/templates/partials/header.html b/templates/partials/header.html index d391836..67495e2 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -1,5 +1,10 @@ + + {%- if macros_settings::evaluate_setting_priority(setting="enable_csp", page=page | default(value=""), section=section | default(value=""), default_global_value="true") == "true" -%} + {%- include "partials/content_security_policy.html" -%} + {%- endif -%} + @@ -130,10 +135,6 @@ - {%- if macros_settings::evaluate_setting_priority(setting="enable_csp", page=page | default(value=""), section=section | default(value=""), default_global_value="true") == "true" -%} - {%- include "partials/content_security_policy.html" -%} - {%- endif -%} - {%- if config.extra.theme_switcher and config.extra.theme_switcher == true -%} {# If JavaScript is disabled, hide the button. #}