Skip to content

Commit

Permalink
feat(gtm/CSP): separate entries for image-src
Browse files Browse the repository at this point in the history
Co-authored-by: Roman Zimmermann <[email protected]>
  • Loading branch information
mojulia and torotil authored Dec 13, 2024
1 parent 022722c commit d2041bb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Check warning on line 46 in campaignion_tracking/campaignion_tracking_gtm/campaignion_tracking_gtm.module

View check run for this annotation

Codecov / codecov/patch

campaignion_tracking/campaignion_tracking_gtm/campaignion_tracking_gtm.module#L46

Added line #L46 was not covered by tests
return $hosts;
}

0 comments on commit d2041bb

Please sign in to comment.