Smile-SA/elasticsuite

View on GitHub
src/module-elasticsuite-tracker/etc/csp_whitelist.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Smile ElasticSuite to newer
 * versions in the future.
 *
 * @category  Smile
 * @package   Smile\ElasticsuiteTracker
 * @author    Pierre Le Maguer <pierre.lemaguer@smile.fr>
 * @copyright 2020 Smile
 * @license   Open Software License ("OSL") v. 3.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="connect-src">
                <values>
                    <value id="elasticsuite" type="host">t.elasticsuite.io</value>
                </values>
            </policy>
            <policy id="img-src">
                <values>
                    <value id="hsnet" type="host">*.hsforms.net</value>
                    <value id="hscom" type="host">*.hsforms.com</value>
                </values>
            </policy>
            <policy id="connect-src">
                <values>
                    <value id="hsnet" type="host">*.hsforms.net</value>
                    <value id="hscom" type="host">*.hsforms.com</value>
                </values>
            </policy>
            <policy id="script-src">
                <values>
                    <value id="hsnet" type="host">*.hsforms.net</value>
                    <value id="hscom" type="host">*.hsforms.com</value>
                </values>
            </policy>
        </policies>
</csp_whitelist>