The store will not work correctly in the case when cookies are disabled

In app\design\frontend{my_theme}\Magento_Theme\layout\default_head_blocks.xml, where {my_theme} is my custom theme or the theme which is used by the frontend.

I added the following xml, which tells to remove the above mentioned block.

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="cookie-status-check" remove="true"/>
    </body>
</page>

yanping
24 声望0 粉丝

引用和评论

0 条评论