0

This is not related to an https site or iframe in any way.

I am trying to load an http iframe inside of an http site within the same domain. However, the iframe will load and then the head and body of the iframe is stripped of content and appears white.

This issue is appearing in Firefox and Internet Explorer. The iframe shows fine in Chrome. Also, there is some active https content (script includes and such) that load inside of the iframe, but to my understanding that shouldn't matter if the main URL and iframe URL are both http.

-- EDIT --

It looks like it could be related to how I'm dynamically loading the iframe in:

$("body").html("<iframe id='iframe-contents' src='" + url + "' style='width: 100%; position: fixed; top: 0; left: 0; bottom: 0; height: 100%; margin: 0;'></iframe>");

  • Can you link to a resource that shows the issue, or perhaps share some code? Which version(s) of Firefox and Internet Explorer did you test? Are there any error messages in the browser's console output (press F12). – Sampson Nov 13 '15 at 18:42
  • Unfortunately it's not a situation where I can share the code, and I'm not sure a sample code would replicate it :(. The console in Firefox is showing a SHA-1 certificate error, recommending use of algorithms stronger than SHA-1. It is the latest Firefox and IE. – user2680673 Nov 13 '15 at 19:13

1 Answers1

0

Even if you set up everything correctly, there could still be some javascript on the site you are trying to embed that is preventing you from doing so.

If you didn't write the code of the site you are trying to embed yourself, this seems rather likely, especially since your symptoms perfectly match what will happen when you try to include facebook inside an iframe

You can prevent your website from being embedded inside an iframe as statet here

hope this helps

edit: just saw that you mentioned it works fine in chrome, so it's probably another issue, sorry

Community
  • 1
  • 1
Patchee
  • 120
  • 2
  • 7