From dceb2e44b7f5dbfc9f802bfd519c537ad70b4cf6 Mon Sep 17 00:00:00 2001 From: Eugene Fox Date: Wed, 21 Aug 2024 00:19:09 +0000 Subject: [PATCH] fix: added CSP policy for Clarity --- next.config.mjs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/next.config.mjs b/next.config.mjs index 0fd52e8..887988e 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -5,6 +5,21 @@ const nextConfig = { output: "standalone", reactStrictMode: true, productionBrowserSourceMaps: true, + async headers() + { + return [ + { + source: "/(.*)", + headers: + [ + { + key: "Content-Security-Policy", + value: "default-src 'self' https://*.clarity.ms https://c.bing.com 'unsafe-inline';" + } + ] + } + ]; + } }; export default nextConfig;