GoDuBois Posted May 2, 2021 Posted May 2, 2021 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
Nathan Explosion Posted May 2, 2021 Posted May 2, 2021 (edited) 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 May 2, 2021 by Nathan Explosion
GoDuBois Posted May 2, 2021 Author Posted May 2, 2021 3 hours ago, Nathan Explosion said: Here is the likely problem - whatever the url of the iframes are, they start with http:// Thank You, I think that's it. Is there a work around for that problem?
Linux-Is-Best Posted May 2, 2021 Posted May 2, 2021 (edited) 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 May 2, 2021 by Linux-Is-Best
Linux-Is-Best Posted May 2, 2021 Posted May 2, 2021 Just a quick follow-up for you @GoDuBois The good folks at Mozilla have some helpful documentation concerning the general usage of iframes concerning web standards. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe It may be worth a little read for future reference. 👍 GoDuBois 1
GoDuBois Posted May 3, 2021 Author Posted May 3, 2021 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
Linux-Is-Best Posted May 3, 2021 Posted May 3, 2021 (edited) 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 May 3, 2021 by Linux-Is-Best mistype GoDuBois 1
Recommended Posts