2

My site is loaded over https: https://example.com.

I am trying to load an iframe from another of my sites via this:

<iframe src="https://example.org/path" width="800" height="800">

It works fine in Safari but in Chrome I am getting:

Mixed Content: The page at 'https://example.com' was loaded over HTTPS, but requested an insecure resource 'http://example.org/path'. This request has been blocked; the content must be served over HTTPS.

Why is it reporting a problem with http://example.org/path, when I am clearly referencing https://example.org/path in the iframe element?

If I load up https://example.org/path in Chrome, and examine the network tab, it seems that all the requests made while loading that page are https, so it isn't trying to load a http resource.

Is this a bug in Chrome (59)?

sheamus
  • 3,001
  • 4
  • 31
  • 54
  • Does it show a little green lock saying that you're using SSL when you open the link you set in the iframe? – Anish Muthali Aug 07 '17 at 17:25
  • Yes. The actual link in the iframe is https : // www.barn2door.com/a/Qqnv5 – sheamus Aug 07 '17 at 18:48
  • So example.org (the url I am trying to load in iframe) is hosted on heroku, and is a cname for example.herokuapp.com. But it turns out if just use the heroku with subdomain for may app, the iframe loads fine. So atleast I have a work around for now. Hopefully this helps someone else. – sheamus Aug 07 '17 at 21:07
  • That sounds likely. It depends on whether the SSL certificate is registered for the herokuapp.com URL or the shortened URL (without herokuapp). – Anish Muthali Aug 08 '17 at 04:00
  • Have you found a solution to this problem? In my case, ha-mim.org/kayitlar, iframe object is blocked across all browsers even though SRC points to HTTPS page on the same domain. – misaligar Nov 23 '17 at 17:36
  • I have the same problem. Could you solve the problem? – Shimu Mar 06 '19 at 09:08
  • This [thread](https://stackoverflow.com/questions/18327314/how-to-allow-http-content-within-an-iframe-on-a-https-site) has the solution of the problem. – Víctor Daniel Apr 24 '19 at 12:51

0 Answers0