Skip to content

Commit 5188f7d

Browse files
authored
Merge pull request #27 from ProxiBlue/github_26_missing_csp_rules
Add csp_whitelist.xml to deal with CSP validation errors
2 parents 63516f2 + 275cfbd commit 5188f7d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/etc/csp_whitelist.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<csp_whitelist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd">
3+
<policies>
4+
<policy id="script-src">
5+
<values>
6+
<value id="maps.googleapis.com" type="host">maps.googleapis.com</value>
7+
</values>
8+
</policy>
9+
<policy id="img-src">
10+
<values>
11+
<value id="maps.gstatic" type="host">maps.gstatic.com</value>
12+
</values>
13+
</policy>
14+
</policies>
15+
</csp_whitelist>

0 commit comments

Comments
 (0)