Skip to content

Commit

Permalink
Merge pull request #6101 from magento-epam/MC-37065
Browse files Browse the repository at this point in the history
MC-37065: [Magento Admin] Fix CSP Issue
  • Loading branch information
zakdma authored Sep 4, 2020
2 parents 5d8908c + 66c7026 commit 9e7b088
Showing 2 changed files with 36 additions and 0 deletions.
19 changes: 19 additions & 0 deletions app/code/Magento/AdminAnalytics/etc/csp_whitelist.xml
Original file line number Diff line number Diff line change
@@ -13,5 +13,24 @@
<value id="adobedtm" type="host">assets.adobedtm.com</value>
</values>
</policy>
<policy id="img-src">
<values>
<value id="adobedtm" type="host">assets.adobedtm.com</value>
<value id="omtrdc" type="host">amcglobal.sc.omtrdc.net</value>
<value id="dpmdemdex" type="host">dpm.demdex.net</value>
<value id="everesttech" type="host">cm.everesttech.net</value>
</values>
</policy>
<policy id="connect-src">
<values>
<value id="dpmdemdex" type="host">dpm.demdex.net</value>
<value id="omtrdc" type="host">amcglobal.sc.omtrdc.net</value>
</values>
</policy>
<policy id="frame-src">
<values>
<value id="amcdemdex" type="host">fast.amc.demdex.net</value>
</values>
</policy>
</policies>
</csp_whitelist>
17 changes: 17 additions & 0 deletions app/code/Magento/Csp/etc/csp_whitelist.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<csp_whitelist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd">
<policies>
<policy id="img-src">
<values>
<value id="data" type="host">data:</value>
</values>
</policy>
</policies>
</csp_whitelist>

0 comments on commit 9e7b088

Please sign in to comment.