From 022722c9fd5620a36aeb021c0e363d4c018a2e4b Mon Sep 17 00:00:00 2001 From: julia Date: Wed, 11 Dec 2024 12:56:30 +0100 Subject: [PATCH 1/2] feat(gtm/CSP): Add img-src --- .../campaignion_tracking_gtm/campaignion_tracking_gtm.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/campaignion_tracking/campaignion_tracking_gtm/campaignion_tracking_gtm.module b/campaignion_tracking/campaignion_tracking_gtm/campaignion_tracking_gtm.module index 1a328a4f..f4cf2814 100644 --- a/campaignion_tracking/campaignion_tracking_gtm/campaignion_tracking_gtm.module +++ b/campaignion_tracking/campaignion_tracking_gtm/campaignion_tracking_gtm.module @@ -42,6 +42,6 @@ function campaignion_tracking_gtm_campaignion_tracking_snippets() { function campaignion_tracking_gtm_d7csp_hosts() { $hosts['connect-src'][] = 'https://www.google.com'; $hosts['frame-src'][] = 'https://www.googletagmanager.com'; - $hosts['img-src'][] = 'https://www.google-analytics.com'; + $hosts['img-src'][] = 'https://www.google-analytics.com https://www.googletagmanager.com'; return $hosts; } From d2041bb8ed01706849c00da3f449e92bc5aa3c7a Mon Sep 17 00:00:00 2001 From: mojulia <48677259+mojulia@users.noreply.github.com> Date: Fri, 13 Dec 2024 09:31:06 +0100 Subject: [PATCH 2/2] feat(gtm/CSP): separate entries for image-src Co-authored-by: Roman Zimmermann --- .../campaignion_tracking_gtm/campaignion_tracking_gtm.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/campaignion_tracking/campaignion_tracking_gtm/campaignion_tracking_gtm.module b/campaignion_tracking/campaignion_tracking_gtm/campaignion_tracking_gtm.module index f4cf2814..4f456c00 100644 --- a/campaignion_tracking/campaignion_tracking_gtm/campaignion_tracking_gtm.module +++ b/campaignion_tracking/campaignion_tracking_gtm/campaignion_tracking_gtm.module @@ -42,6 +42,7 @@ function campaignion_tracking_gtm_campaignion_tracking_snippets() { function campaignion_tracking_gtm_d7csp_hosts() { $hosts['connect-src'][] = 'https://www.google.com'; $hosts['frame-src'][] = 'https://www.googletagmanager.com'; - $hosts['img-src'][] = 'https://www.google-analytics.com https://www.googletagmanager.com'; + $hosts['img-src'][] = 'https://www.google-analytics.com'; + $hosts['img-src'][] = 'https://www.googletagmanager.com'; return $hosts; }