0

I'm trying to show Magento 2 inside an iframe. It was possible in Magento 1, as explained in this guide.

Is it possible to use Magento 2 settings to allow showing it from iframe?

My current workaround:

cp /var/www/magento/app/etc/env{,_backup}.php
grep -v SAMEORIGIN /var/www/magento/app/etc/env_backup.php > /var/www/magento/app/etc/env.php
  • 1
    Would you mind asking a clear, more complete question than a one-liner please? – Julien Lachal Apr 11 '16 at 12:14
1

We recommend against running Magento in an iFrame but to experiment with it, see the documentation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.