New answers tagged

1

I tried a few different versions of setHeader() but the only thing that worked for me was overwriting XFrameOptions. Vendor/Module/etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">...


1

As discussed if this is not your case then you can use ob_start for output buffering <?php ob_start(); // code ob_end_flush(); ?>


Top 50 recent answers are included