From 250363e0764a82e57c3fed966098dfbd1cba6255 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com>
Date: Thu, 12 Oct 2023 17:57:48 +0200
Subject: [PATCH] csp config

---
 layouts/partials/head/csp.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/layouts/partials/head/csp.html b/layouts/partials/head/csp.html
index bafc2463..00401f10 100644
--- a/layouts/partials/head/csp.html
+++ b/layouts/partials/head/csp.html
@@ -1,4 +1,4 @@
-{{- with site.Data.website.external_domains -}}
+{{- with (or site.Data.website.external_domains site.ContentSecurityPolicy.allowed_domains) -}}
 <meta http-equiv="Content-Security-Policy"
       content="
         default-src 'self' {{ delimit . " " }}
-- 
GitLab