ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?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="lts-m2-media-scripts" type="host">https://media.ltsecurityinc.com</value>
|
||||
<value id="lts-m2-static-scripts" type="host">https://static.ltsecurityinc.com</value>
|
||||
</values>
|
||||
</policy>
|
||||
|
||||
<policy id="style-src">
|
||||
<values>
|
||||
<value id="lts-m2-media-styles" type="host">https://media.ltsecurityinc.com</value>
|
||||
<value id="lts-m2-static-styles" type="host">https://static.ltsecurityinc.com</value>
|
||||
</values>
|
||||
</policy>
|
||||
|
||||
<policy id="font-src">
|
||||
<values>
|
||||
<value id="lts-m2-media-fonts" type="host">https://media.ltsecurityinc.com</value>
|
||||
<value id="lts-m2-static-fonts" type="host">https://static.ltsecurityinc.com</value>
|
||||
</values>
|
||||
</policy>
|
||||
|
||||
<policy id="img-src">
|
||||
<values>
|
||||
<value id="lts-m2-media-imgs" type="host">https://media.ltsecurityinc.com</value>
|
||||
<value id="lts-m2-static-imgs" type="host">https://static.ltsecurityinc.com</value>
|
||||
</values>
|
||||
</policy>
|
||||
</policies>
|
||||
|
||||
</csp_whitelist>
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
|
||||
<module name="CK_CSP" setup_version="1.0.0"/>
|
||||
</config>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* @author CK Liang
|
||||
* @copyright Copyright (c) CK Liang
|
||||
* @package CK_CSP
|
||||
*/
|
||||
\Magento\Framework\Component\ComponentRegistrar::register(
|
||||
\Magento\Framework\Component\ComponentRegistrar::MODULE,
|
||||
'CK_CSP',
|
||||
__DIR__
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user