IE Throwing Access denied error

2019-02-21 00:46发布

问题:

I have 2 projects (that connect and communicate with each other) running on 2 tomcat instances. In my local i have 2 tomcats running. All is well on all the different browsers except for IE which say Access denied from loading of the Javascript files. So i have included a library called https://github.com/tlianza/ajaxHooks/blob/master/src/ajax/xdr.js that fixed my issue in my local.

But when i deployed the code on to DEV environment again 2 different tomcat instance( on Dev servers) i see the same error Access denied.

   Message: Access is denied
    URI: https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js

   Message: Expected identifier, string or number
    URI: https://one.server.org/folder/js/global.js

Also all my files(like js/css) related to Project 1 are contained in the same tomcat instance only and not dependent on Project 2

I tried different browser setting option in IE but still same issue

I tried both URL to be launched from HTTPS:// still i see same error in IE.

So just wondering what would make IE Execute the same way as in other browsers

回答1:

Apparently what worked for me is changing the Jquery library to 1.10.0. Jquery 1.10.1 had bug that made IE throw access denied error.this post was useful "Preventing "SCRIPT5: Access is denied" error in IE"

tested in IE8/IE9/IE10