IE投掷拒绝访问错误错误、IE

2023-09-11 01:15:43 作者:笙歌篱陌.

我有2个项目(连接和相互通信)2 Tomcat实例运行。在我的地方,我有2雄猫运行。一切都很好的,除了IE浏览器这不能不加载JavaScript文件的访问被拒绝各种不同的浏览器。 所以我已经包含了一个名为库 https://github.com/tlianza/ajaxHooks/blob/master/src/ajax/xdr.js 在我的本地。

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.

但是,当我部署了code到开发环境又2个不同的Tomcat实例(在开发服务器)我看到了同样的错误,访问被拒绝。

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

还有我所有的文件(如JS / CSS)到项目1相关的包含在同一个Tomcat实例,而不是只依赖于项目2

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

我尝试了不同的浏览器设置在IE选项,但还是同样的问题

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

我想这两个URL从HTTPS推出://我还是看到同样的错误在IE

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

所以,只是不知道什么可以让IE浏览器中执行同样的方式在其他浏览器

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

推荐答案

显然有什么工作对我来说是改变jQuery库到1.10.0。 jQuery的1.10.1有缺陷,使得IE抛拒绝访问error.this职位是有益的 $p$pventing " SCRIPT5:访问被拒绝"误差在IE

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"

在IE8 / IE9 / IE10测试

tested in IE8/IE9/IE10