IFrame Request Canceled

This example loads the url in the iframe . However, when I change the url to something like http://www.yahoo.com , the iframe does not load antyhing

The following is an example.

On the Network tab of the Chrome Developer Tools, I see that the request for Yahoo has been canceled. In FF, it does not give any errors, it simply does not return any content. IE9 gives a message that it cannot display this content.

enter image description here

This happens in Chrome, FF, and IE9 (I have not tested previous versions of IE).

+4
source share
2 answers

This is because Yahoo itself is in the way.

It has been noted here: fooobar.com/questions/1424353 / ...

To verify this, try installing a http://www.google.com/ source that will not work, but then try http://www.bbc.co.uk/ and it will work.

Perhaps it works as described here: fooobar.com/questions/92319 / ... using X-FRAME-OPTIONS

+4
source

If the site hosting the web page enforces a secure HTTPS , some browsers (to check for Chrome) will require that all network resources use HTTPS .

Basically, if your site forces HTTPS , try setting src="https://yahoo.com"

This will not solve the OP answer directly due to the fact that this is a limitation of Yahoo itself, but other people viewing this page may run into this problem as a result of this (I was).

0
source

All Articles