Skip to content

Commit d81eba1

Browse files
committed
MC-37065: [Magento Admin] Fix CSP Issue
- Refactor: Move ':data' value inside Csp module
1 parent c1d7415 commit d81eba1

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
<value id="omtrdc" type="host">amcglobal.sc.omtrdc.net</value>
2020
<value id="dpmdemdex" type="host">dpm.demdex.net</value>
2121
<value id="everesttech" type="host">cm.everesttech.net</value>
22-
<value id="data" type="host">data:</value>
2322
</values>
2423
</policy>
2524
<policy id="connect-src">
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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="img-src">
12+
<values>
13+
<value id="data" type="host">data:</value>
14+
</values>
15+
</policy>
16+
</policies>
17+
</csp_whitelist>

0 commit comments

Comments
 (0)