Skip to content

Commit f643af0

Browse files
committed
Merge remote-tracking branch '38991/bugfix/issue-37750_analytics_csp' into novcommpr-2
2 parents 40e46db + a9ac117 commit f643af0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
4+
* Copyright 2022 Adobe
5+
* All Rights Reserved.
66
*/
77
-->
88
<csp_whitelist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -19,9 +19,9 @@
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)