make it somewhat work

This commit is contained in:
Pierre Martin
2022-03-19 01:10:26 +01:00
parent 016c085f87
commit af80aff12b
4 changed files with 104 additions and 0 deletions

20
etc/csp_whitelist.xml Normal file
View File

@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<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="script-src">
<values>
<value id="commandbar" type="host">https://frames-*.commandbar.com</value>
</values>
</policy>
<policy id="frame-src">
<values>
<value id="commandbar" type="host">https://frames-*.commandbar.com</value>
</values>
</policy>
<policy id="style-src">
<values>
<value id="commandbar" type="host">https://frames-*.commandbar.com</value>
</values>
</policy>
</policies>
</csp_whitelist>