Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Chrome won't allow IFRAME to load an HTML file

I've got this iframe that is working fine on FF, but it doesn't seem to load up on Google Chrome.

Could someone tell me why this is happening?

My iframe:

<iframe src="http://tripsketch.com/page?s=TheCavendish#!Id=1024&Name=London&Type=City&view=Attraction" height="700" width="990" frameborder="0" scrolling="no">
</iframe>
like image 313
Amol Bansode Avatar asked Aug 14 '13 04:08

Amol Bansode


2 Answers

I tested it and it works OK in chrome on my end. My guess is that you have it set up so the page containing the iframe is being accessed via https. If the page is https, you cannot load a iframe on that page that is not https. It will result in a "mixed-content error" and for security purposes it will not load.

It works in FF because FF is more lax about this security restriction and Chrome happens to be more strict on mixed-content errors.

like image 85
Sites Done Right Avatar answered Nov 05 '22 13:11

Sites Done Right


Problem was with chrome version 27.xx & 28.xxx In this version chrome was having issue of url redirection,giving empty result(302 error).

like image 21
Amol Bansode Avatar answered Nov 05 '22 12:11

Amol Bansode