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
2
  • 1
    Would you mind asking a clear, more complete question than a one-liner please? Commented Apr 11, 2016 at 12:14
  • @Michael in iframe magento site login working ?
    – Pawankumar
    Commented Sep 8, 2020 at 13:17

1 Answer 1

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 and acknowledge you have read our privacy policy.

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