From 94efbf764afc9a2d0f9ababcfe43b50190ad8c32 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 16 Feb 2022 00:18:12 +0100 Subject: fix: typo in CSP --- next.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/next.config.js b/next.config.js index f3a3b2c..e754deb 100644 --- a/next.config.js +++ b/next.config.js @@ -6,7 +6,7 @@ const matomoDomain = process.env.NEXT_PUBLIC_MATOMO_DOMAIN; const contentSecurityPolicy = ` default-src 'self' ${backendDomain}; - child-src: 'self' *.${frontendDomain.replace('www.', '')}; + child-src 'self' *.${frontendDomain.replace('www.', '')}; connect-src 'self' ${backendDomain} api.github.com; font-src 'self'; frame-src 'self' ${matomoDomain}; @@ -18,7 +18,7 @@ const contentSecurityPolicy = ` const contentSecurityPolicyDev = ` default-src 'self' ${backendDomain}; - child-src: 'self' *.${frontendDomain.replace('www.', '')}; + child-src 'self' *.${frontendDomain.replace('www.', '')}; connect-src 'self' ${backendDomain} api.github.com; font-src 'self'; frame-src 'self' ${matomoDomain}; -- cgit v1.2.3