Jump to content

I-frame codes are no longer working on my forum


Recommended Posts

I secured my site the other day with https certificate and also updated the forum to v4.5.4.2.

I am noticing that none of my Iframe codes are working.

I switched the site back to unsecured and the Iframes will work then. 

What am I doing wrong???

Does anyone have any tips?

thank you

Link to comment
Share on other sites

what iframe codes?

Here is the likely problem - whatever the url of the iframes are, they start with http://

Now that your site is https://, your browser will not load the content of the iframes because they are considered insecure (cross-origin related 'error')

So, provide more information about the 'iframe codes'.

Edited by Nathan Explosion
Link to comment
Share on other sites

35 minutes ago, GoDuBois said:

Thank You, I think that's it.
Is there a work around for that problem?

Hello @GoDuBois

I am sorry to hear you are experiencing this problem. I understand how frustrating that can be. Though I have good news, the solution is simple. You will want to use HTTPS for both (including your iframe code). Mixed content (secure and insecure) is considered bad practice. Your web browser is protecting you by design.

If you are still experiencing an issue. Can you please share with us your iframe code?

Edited by Linux-Is-Best
Link to comment
Share on other sites

4 hours ago, Linux-Is-Best said:

If you are still experiencing an issue. Can you please share with us your iframe code?

they are local traffic cams. I created a page and added the cams so there is a no-cache and refresh code in the header. You can see that on the page source.

<iframe frameborder="0" height="310" src="https://www.godubois.com/CAMS/DuBois1.html" width="360"></iframe><br>

https://www.godubois.com/CAMS/DuBois1.html

 

here you can see the cam:

http://www.godubois.com/CAMS/DuBois1.html

Link to comment
Share on other sites

16 minutes ago, GoDuBois said:

they are local traffic cams. I created a page and added the cams so there is a no-cache and refresh code in the header. You can see that on the page source.

<iframe frameborder="0" height="310" src="https://www.godubois.com/CAMS/DuBois1.html" width="360"></iframe><br>

https://www.godubois.com/CAMS/DuBois1.html

 

here you can see the cam:

http://www.godubois.com/CAMS/DuBois1.html

I am sorry to tell you there will be no way to overcome this. Looking at your source, which is the state of Pennsylvania website, not all their site is using HTTPS. For example, if you try to visit http://www.dot35.state.pa.us/public/Districts/District2/WebCams/CAM02022CCTV26.jpg it works, but https://www.dot35.state.pa.us/public/Districts/District2/WebCams/CAM02022CCTV26.jpg does not contain a certificate (it is not HTTPS enabled). Since this is not your website, it is outside of your control.

 
Edited by Linux-Is-Best
mistype
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...