Install Joomla on a server (or test server) that has ssl
Create a Wrapper Module
Create a menu item Wrapper
Check in the front end that it works
In Global config set 'Force HTTPS' 'Entire Site' and view front end
Iframe should display when your site doesn't 'Force HTTPS' 'Entire Site' and when it does
Iframe fails to display when site 'Force HTTPS' 'Entire Site'
The strange thing is that if 'Force HTTPS' 'None' but you reach the site with https then you get the error.
@zero-24
Does the site that you tested on have an ssl cert ?
Did you set 'Force HTTPS' 'Entire Site' ?
The test site must be on a server that has an ssl cert.
e.rg
Your site has an ssl cert and you have 'Force HTTPS' 'Entire Site' and your url is https://www.yoursite.com
then the wrapper does not display
With 'Force HTTPS' 'Entire Site' 'None' and your url is http://www.yoursite.com
then the wrapper does display
This can easily be reproduced on xampp localhost as it has ssl.
You're probably running into browser security issues with mixed content.
<html>
<body>
<iframe src="https://michaels.website/"></iframe>
</body>
</html>
Make a iframe.html
file with these contents on a server where you access the site through HTTPS. It should load correctly. Change the iframed URL to a site that does not use HTTPS (http://www.0to255.com/ is one I have in my bookmarks). When you try to load it, the browser will give you mixed content warnings in its console.
@mbabker
So a http site will not display within an iframe in a https site because the browser security warning is not displayed in the iframe ... which means the target site will not display ?
The only answer then is when using a https site only use https targets in an iframe ?
Correct.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-07-02 03:40:27 |
Closed_By | ⇒ | franz-wohlkoenig |
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-07-02 03:40:27 |
Closed_By | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/16938
Category | ⇒ | Administration |
closed as no Core Issue.
I dont know if i am reopening an old issue but i am using joomla for the first time. I set up a menu item in my joomla website to access a external website using the wrapper module. I tested with various scenarios but i get the same blank screen in the iframe. I tested by loading as follows:
(1) my website in a hosting server using https - works fine
(2) my hosting site CPANEL using https - works fine
(3) my hosting site login using https - does not work
(4) company website both behind and external to the firewall using https - does not work.
(5) tested using various versions (older and latest) - results same as in 1 to 4 above.
(6) tested with a totaly basic installation of joomla - results same as in 1 to 4 above.
In all cases i tested with the latest version of xampp with PHP version 7.
Please help
@murugappanrm51 please ask help on the forums. This repository concerns Joomla coding.
I did post this in the forum. Webdongle posted the link to this location.
Does the site that you tested on have an ssl cert ?
Yes. Let’s Encrypt
Did you set 'Force HTTPS' 'Entire Site' ?
Yes.
Please that the page you are loading via the iframe is https too else you get the issue that Michael described above. And this is a browser issue / behavior we have no control on the CMS level.
My response from the Joomla forum: Even if both your site and the target site were to use https but the target site does not allow to be presented in a frame, Chrome displays a blank frame. Both Internet Explorer 11 and Edge show a warning with a link to access the page in a new window.
The message "...the publisher of this content does not allow it to be displayed in a frame" does not originate from Joomla but from IE11 or Edge.
hmm i can not reproduce this. Could it be that the website you want to show in the wraper is not HTTPS?