I am trying to embed a WordPress via iFrame in my joomla site and some pages are getting blocked. All my sites are local on my server. I can iFrame joomla to joomla sites without any issues, but when I try to iframe a WordPress site/url into joomla it wont work, some pages work but others error, in edge I get (johnzapf.com refused to connect) in firefox I get (johnzapf.com will not allow Firefox to display the page if another site has embedded it) I dont get iframe errors on any other sites, only going to a wordpress site. I have tried all the iframe Options, in IIS and web.config, I don’t know how to fix this.
you can recreate the error here by clicking on “my account”.
The page I need help with: [log in to see the link]
If you use a CMS other than WordPress (like Joomla) and need support, please go to their official support channel:
This issue is most likely to do with the way Joomla works with IFrames.
Like I said I don’t have any problem with Joomla sites, joomla to joomla iframe works fine, its only when I added iframe to a WordPress site. And the error is saying its the WordPress site. “johnzapf.com refused to connect” that’s the wordpress site.
I understand now.
My best guess is that you can’t load a secure section of a WordPress site via IFrame, such as the WooCommerce account and login pages. This is a security measure to avoid sites from embedding secure content like login pages from other sites.
There’s a similar issue and solution found here:
Use at your own risk though!
I added to this the functions.php and it did not work. I am trying everything I can find, if anyone has any ideas?
remove_action( ‘login_init’, ‘send_frame_options_header’ );
remove_action( ‘admin_init’, ‘send_frame_options_header’ );
- This reply was modified 3 years, 3 months ago by johnzapf.
- The topic ‘Embed WordPress site to Joomla not working.’ is closed to new replies.