Skip to content

Commit

Permalink
Add missing img-src policy for www.googletagmanager.com
Browse files Browse the repository at this point in the history
According to the [CSP documentation](https://developers.google.com/tag-platform/tag-manager/web/csp), the following directives are needed for the www.googletagmanager.com domain (when nonces or hashes are not used):

    script-src: 'unsafe-inline' https://www.googletagmanager.com
    img-src: www.googletagmanager.com
  • Loading branch information
aadmathijssen committed Mar 23, 2022
1 parent e18f31c commit 222b75b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions etc/csp_whitelist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<value id="custom-csp-googleapis-img-ssl" type="host">https://www.googleadservices.com/</value>
<value id="custom-csp-googleapis-img-ga-ssl" type="host">https://www.google-analytics.com/</value>
<value id="custom-csp-google-img-ga-ssl" type="host">https://www.google.com/</value>
<value id="custom-csp-googletagmanager-img" type="host">www.googletagmanager.com</value>
</values>
</policy>
<policy id="connect-src">
Expand Down

0 comments on commit 222b75b

Please sign in to comment.