Chrome Frame: Access Denied in IE9

I am trying to use Chrome-Frame on the site I am creating. In IE8 and below, everything works fine ... In IE9, I get this error:

SCRIPT5: Access is denied. cf-dlpage.js, line78 character 209 

I do not know what to do!

there is a condition that causes the behavior:

 <!--[if lte IE 9]> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script> <style> body { overflow-y:hidden; } .chromeFrameOverlayContent { border:none; overflow:hidden; } .chromeFrameOverlayContent iframe { border:none; overflow:hidden; } .chromeFrameOverlayCloseBar { display:none; } .chromeFrameOverlayUnderlay { background-image:url(/img/bg.png); opacity: 1; filter: alpha(opacity = 100); } </style> <script type="text/javascript"> window.onload = function() { CFInstall.check({ url: "/fix/update.html", mode: "overlay", destination: "/" }); }; </script> <![endif]--> 

Any help is much appreciated!

+6
source share
2 answers

Try this , it looks like it is related to your problem. I hope this helps. read the comment from erikwright@chromium.org , is the last comment right now.

+1
source

The problem is caused by the following:

  • Your page is at www.example.com
  • The installation procedure creates an iframe with the URL www.google.com/...
  • The iframe page itself does Javascript and tries to read window.parent , but ...
  • ... this is not allowed because both frames have different domains.

The only solutions, apparently, are:

  • Create your own installation script
  • Google fixes its script

I spent the whole day getting around this problem (nested frames, custom scripts, routing Google requests through my server ...) until I was gone, why Google seems to be ignoring this error:

Most people just don't notice the problem . Installation is successful, regardless of this error. To actually get a message box, you must enable Javascript debugging or the Show Javascript function.

You and I turned on these features because we are developers, so naturally we are worried, but the average Joe will not notice anything.

0
source

Source: https://habr.com/ru/post/920379/


All Articles