<?xml version="1.0"?>
<!--
/**
 * 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="script-src">
            <values>
                <!--CDN-->
                <value id="cloudflare" type="host">*.cloudflare.com</value>

                <!--Google-->
                <value id="google-analytics" type="host">www.google-analytics.com</value>
                <!-- Google Maps JS API: popup "Disponibilidad en tiendas" del PDP (vista Mapa) -->
                <value id="google-maps" type="host">maps.googleapis.com</value>

                <!--Functions-->
                <value id="trustedshops" type="host">*.trustedshops.com</value>
                <value id="usercentrics" type="host">*.usercentrics.eu</value>
                <value id="naizfit" type="host">*.naiz.fit</value>
                <value id="twittersc" type="host">*.twitter.com</value>
                <value id="adds-twitter" type="host">ads-twitter.com</value>
                <value id="aplazame" type="host">*.aplazame.com</value>

                <value id="trusted-domain" type="host">https://player.vimeo.com https://bat.bing.com https://analytics.tiktok.com https://dev.elganso.com https://cdn.elganso.com https://www.elganso.com https://prerender.io https://use.typekit.net https://www.googletagmanager.com https://fonts.gstatic.com https://pagead2.googlesyndication.com</value>
            </values>
        </policy>
        <policy id="default-src">
            <values>
                <value id="trusted-domain" type="host">https://player.vimeo.com https://bat.bing.com https://analytics.tiktok.com https://dev.elganso.com https://cdn.elganso.com https://www.elganso.com https://prerender.io https://use.typekit.net https://www.googletagmanager.com https://fonts.gstatic.com https://pagead2.googlesyndication.com</value>
            </values>
        </policy>
        <policy id="frame-src">
            <values>
                <value id="trusted-domain" type="host">https://player.vimeo.com https://bat.bing.com https://analytics.tiktok.com https://dev.elganso.com https://cdn.elganso.com https://www.elganso.com https://prerender.io https://use.typekit.net https://www.googletagmanager.com https://fonts.gstatic.com https://pagead2.googlesyndication.com https://td.doubleclick.net/</value>
            </values>
        </policy>
        <policy id="style-src">
            <values>
                <!--CDN-->
                <value id="cloudflare" type="host">*.cloudflare.com</value>

                <!--Design-->
                <value id="typekit" type="host">*.typekit.net</value>
                <value id="googlefonts3" type="host">*.googleapis.com</value>

                <!--Functions-->
                <value id="trustedshops" type="host">*.trustedshops.com</value>
                <value id="usercentrics" type="host">*.usercentrics.eu</value>
            </values>
        </policy>
        <policy id="img-src">
            <values>
                <!--CDN-->
                <value id="cloudflare" type="host">*.cloudflare.com</value>
                <value id="klarna-base" type="host">https://cdn.klarna.com</value>
                <value id="twitter-image" type="host">t.co</value>

                <!--Payments-->
                <value id="paypal" type="host">*.paypal.com</value>

                <!--Video-->
                <value id="vimeocdn" type="host">*.vimeocdn.com</value>
                <value id="youtube-img" type="host">https://s.ytimg.com</value>

                <!-- Google Maps: tiles/iconos del mapa en "Disponibilidad en tiendas" -->
                <value id="google-maps-tiles" type="host">*.googleapis.com *.gstatic.com *.ggpht.com</value>

                <value id="trusted-domain" type="host">https://player.vimeo.com https://bat.bing.com https://analytics.tiktok.com https://dev.elganso.com https://cdn.elganso.com https://www.elganso.com https://prerender.io https://use.typekit.net https://www.googletagmanager.com https://fonts.gstatic.com https://pagead2.googlesyndication.com https://www.google.es</value>
            </values>
        </policy>
        <policy id="connect-src">
            <values>
                <!--CDN-->
                <value id="cloudflare" type="host">*.cloudflare.com</value>

                <!--Payments-->
                <value id="paypal" type="host">*.paypal.com</value>
                <value id="googlefonts2" type="host">*.googleapis.com</value>
                <value id="google-maps" type="host">maps.googleapis.com</value>

                <value id="trusted-domain" type="host">https://player.vimeo.com https://bat.bing.com https://analytics.tiktok.com https://dev.elganso.com https://cdn.elganso.com https://www.elganso.com https://prerender.io https://use.typekit.net https://www.googletagmanager.com https://fonts.gstatic.com https://pagead2.googlesyndication.com</value>
            </values>
        </policy>
        <policy id="font-src">
            <values>
                <!--CDN-->
                <value id="cloudflare" type="host">*.cloudflare.com</value>

                <!--Design-->
                <value id="typekit" type="host">*.ads-twitter.com</value>

                <!--Functions-->
                <value id="googlefonts" type="host">*.googleapis.com</value>

                <value id="paypal" type="host">*.paypal.com</value>
                <value id="stipe" type="host">*.stripe.com</value>
                <value id="klarna" type="host">klarna.com</value>
                <value id="klarna-base" type="host">https://cdn.klarna.com</value>
                <value id="cloudflare" type="host">*.cloudflare.com</value>
            </values>
        </policy>
        <policy id="media-src">
            <values>
                <!-- Permite recursos del mismo dominio donde se ejecuta el script -->
                <value id="elganso_self" type="host">'self'</value>
                <!-- Permite específicamente el dominio con y sin www -->
                <value id="elganso_main" type="host">*.elganso.com</value>
            </values>
        </policy>
    </policies>
</csp_whitelist>