You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,16 @@ public function configure(): void
80
80
}
81
81
```
82
82
83
+
## Google Tag Manager / Adservices whitelist
84
+
Google uses localised regional domains for visitors for image tracker loading, which can pile up report violations with `google.com|.co.nz|.com.au` etc in your reporting tool.
85
+
To resolve this and rather than specifying all of Google's listed support domains (see https://www.google.com/supported_domains)
86
+
A white list config can be set to the GTM fragment to whitelist all `https:` URLs on the `img-src` directive, for example:
87
+
```yaml
88
+
Silverstripe\CSP\Fragments\GoogleTagManager:
89
+
whitelist_google_regional_domains: true
90
+
```
91
+
> See also ImagesOverHTTPs::class for more basic cover of https images.
92
+
83
93
## SRI
84
94
We also support SRI in this module, you can enable this via yaml:
0 commit comments