From 1105b469e7de37f46211a3bd9c8f506a3de3e5f0 Mon Sep 17 00:00:00 2001 From: ChisomOguibe11 Date: Thu, 26 Oct 2023 11:21:05 +0100 Subject: [PATCH 1/2] update hof to v20.2.28 (gtm beta) --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 5c1e093f..26f710ee 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "dependencies": { "browserify": "^17.0.0", "deprecate": "^1.0.0", - "hof": "^20.2.10", + "hof": "~20.2.28", "homeoffice-countries": "^0.1.0", "jquery": "^3.6.0", "lodash": "^4.17.21", diff --git a/yarn.lock b/yarn.lock index d0b2678e..157cf62f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3016,10 +3016,10 @@ hmac-drbg@^1.0.1: minimalistic-assert "^1.0.0" minimalistic-crypto-utils "^1.0.1" -hof@^20.2.10: - version "20.2.10" - resolved "https://registry.yarnpkg.com/hof/-/hof-20.2.10.tgz#11b4be553517d79eaa730d7aaa238607b4137964" - integrity sha512-tp0quZ8i3JPawSwmbXiwFpMpS9Sc/f9KgXL1zgofSzG+guvJvxmurfRydMsgceawN2W6npk5QT2zLU6Aq8YQvQ== +hof@~20.2.28: + version "20.2.28" + resolved "https://registry.yarnpkg.com/hof/-/hof-20.2.28.tgz#349b12321b67bcc337fb09c3ea79c863ce5b440c" + integrity sha512-K1abZdRen3snVsjTronpOTEPz+9cYq5B3u2TBtoFmPZ3qF8O0vpvGAdbPkp04qJvP74IeN/l+/WOeHTfrau4Aw== dependencies: aliasify "^2.1.0" bluebird "^3.7.2" From e54a61a981ef6da18016adc7c4f2af671184924d Mon Sep 17 00:00:00 2001 From: ChisomOguibe11 Date: Thu, 26 Oct 2023 13:56:16 +0100 Subject: [PATCH 2/2] add additional CSP rules to support GTM --- server.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server.js b/server.js index f5ae23be..f1cf728b 100644 --- a/server.js +++ b/server.js @@ -11,6 +11,13 @@ settings = Object.assign({}, settings, { behaviours: settings.behaviours.map(require), routes: settings.routes.map(require), csp: { + fontSrc: [ + 'https://fonts.googleapis.com/' + ], + scriptSrc: [ + 'https://tagmanager.google.com/', + 'https://www.googletagmanager.com/' + ], imgSrc: [ 'www.google-analytics.com', 'ssl.gstatic.com',