Skip to content

Commit af193c6

Browse files
committed
issue 37750: whitelisting *.google-analytics.com *.analytics.google.com
1 parent 140433c commit af193c6

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

app/code/Magento/GoogleGtag/etc/csp_whitelist.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
<values>
1313
<value id="google_ad_services_conversion" type="host">googleads.g.doubleclick.net</value>
1414
<value id="google_ad_services" type="host">www.googleadservices.com</value>
15-
<value id="google_analytics" type="host">www.google-analytics.com</value>
16-
<value id="google_analytics_4" type="host">analytics.google.com</value>
15+
<value id="google_analytics" type="host">*.google-analytics.com</value>
16+
<value id="google_analytics_4" type="host">*.analytics.google.com</value>
1717
<value id="google_tag_manager" type="host">www.googletagmanager.com</value>
1818
</values>
1919
</policy>
2020
<policy id="connect-src">
2121
<values>
22-
<value id="google_ad_services" type="host">www.googleadservices.com</value>
23-
<value id="google_analytics" type="host">www.google-analytics.com</value>
24-
<value id="google_analytics_4" type="host">analytics.google.com</value>
22+
<value id="google_ad_services" type="host">www.googleadservices.com</value>
23+
<value id="google_analytics" type="host">*.google-analytics.com</value>
24+
<value id="google_analytics_4" type="host">*.analytics.google.com</value>
2525
<value id="google_tag_manager" type="host">www.googletagmanager.com</value>
2626
</values>
2727
</policy>
@@ -32,12 +32,12 @@
3232
</policy>
3333
<policy id="img-src">
3434
<values>
35-
<value id="google_ad_services_pixel" type="host">googleads.g.doubleclick.net</value>
36-
<value id="google_ad_services_conversion" type="host">www.google.com</value>
37-
<value id="google_ad_services_bid" type="host">bid.g.doubleclick.net</value>
35+
<value id="google_ad_services_pixel" type="host">googleads.g.doubleclick.net</value>
36+
<value id="google_ad_services_conversion" type="host">www.google.com</value>
37+
<value id="google_ad_services_bid" type="host">bid.g.doubleclick.net</value>
3838
<value id="google_ad_services" type="host">www.googleadservices.com</value>
39-
<value id="google_analytics" type="host">www.google-analytics.com</value>
40-
<value id="google_analytics_4" type="host">analytics.google.com</value>
39+
<value id="google_analytics" type="host">*.google-analytics.com</value>
40+
<value id="google_analytics_4" type="host">*.analytics.google.com</value>
4141
<value id="google_tag_manager" type="host">www.googletagmanager.com</value>
4242
</values>
4343
</policy>

0 commit comments

Comments
 (0)