Skip to content

Commit 5f1b51d

Browse files
committed
Added the scp allowlist if you only use Google Analytics
1 parent 132b9e6 commit 5f1b51d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<csp_whitelist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd">
10+
<policies>
11+
<policy id="script-src">
12+
<values>
13+
<value id="google_analytics" type="host">www.google-analytics.com</value>
14+
</values>
15+
</policy>
16+
<policy id="connect-src">
17+
<values>
18+
<value id="google_analytics" type="host">www.google-analytics.com</value>
19+
</values>
20+
</policy>
21+
<policy id="img-src">
22+
<values>
23+
<value id="google_analytics" type="host">www.google-analytics.com</value>
24+
</values>
25+
</policy>
26+
</policies>
27+
</csp_whitelist>

0 commit comments

Comments
 (0)