From 8f9652003ef8a176ea4b24eccfa8a88259b3e80a Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Mon, 14 Apr 2025 15:00:14 +0100 Subject: [PATCH] Put CSP in to headers and not Meta tags --- components/tracking/index.js | 5 ++- middleware.js | 77 ++++++++++++++++++++++++++++++++++++ package.json | 4 +- pages/_document.js | 12 ++++-- 4 files changed, 92 insertions(+), 6 deletions(-) create mode 100644 middleware.js diff --git a/components/tracking/index.js b/components/tracking/index.js index 2b1e026d..1bdbf3b4 100644 --- a/components/tracking/index.js +++ b/components/tracking/index.js @@ -6,11 +6,13 @@ export const Tracking = ({ googleTagManagerID, nonce, cookieObj }) => { return (