访问在AngularJS被拒绝在IE11 [英] Access is Denied on IE11 in AngularJS

查看:2827
本文介绍了访问在AngularJS被拒绝在IE11的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每一个开发流程有2个部分。首先要努力工作,开发应用程序。第二个更加努力地工作,并使其与伟大的嚣张IE兼容。

Every development pipeline has 2 parts. FIRST to work hard and develop the application. SECOND to work harder and make it compatible with the great arrogant IE.

我们有没有在 Webstorm 开发的任何服务器端code的 AngularJS(v1.3.13)应用程序。我们正在 REST 调用服务。我们的应用程序适用于Chrome和Firefox罚款没有任何控制台错误。然而,当我们试图打开IE11或IE9(没试过IE10)的页面,我们的页面没有加载。控制台表明,我们有2个错误。其中之一是访问被拒绝

We have an AngularJS (v1.3.13) application without any server side code developed in Webstorm. We are making REST calls to service. Our application works fine on Chrome and Firefox without any Console errors. However when we try to open the page in IE11 or IE9 (not tried IE10), our page doesn't load. Console suggests we have 2 errors. One of them is Access is Denied on

xhr.open(method, url, true);

angular.js

有互联网,没有对帖子的数量似乎是工作。这是我都试过了。

There are number of posts on internet and none seems to be working. This is what I have tried.


  1. IIS托管的应用程序与改变处理程序映射,支持跨域的的.Net V4.0 (由高级建议)

  2. 试过禁用缓存HTTP请求。​​

  3. 在受信任的站点类别添加域名,并且还加入的locahost / IP为本地Intranet。

  4. 更改请求类型为 JSONP ,并尝试添加访问控制允许来源(与价值 * ),以头。

  5. 更改IE设置为允许跨域调用。

  1. Hosting app in IIS with changed Handler Mappings to support Cross Domain calls on an Application pool of .Net v4.0 (as suggested by a Senior)
  2. Tried to disable to cache for HTTP requests.
  3. Adding Domain in trusted site category and also adding locahost/IP to local intranet.
  4. Changing request type to JSONP and trying to add Access-Control-Allow-Origin (with value of *) to headers.
  5. Changing IE settings to allow Cross Domain calls.

错误仍然追着我们。甚至我的同事们尝试了类似的打击结束了自己的机器一样。是否有任何人认为我的东西这一点。

Error is still chasing us. Even my colleagues have tried the same on their machines ending up with similar blow. Is there anyone to suggest me something on this.

这可能是CORS,我可能需要去XDR(XDomainRequest),但不知道如何为错误是在angular.js使用它。我当然没有这方面的专家,所以请建议。

It may be CORS and I may need to go for xdr (XDomainRequest) but not sure how to use it as error is in angular.js. I am certainly no expert on this so please suggest.

屏幕错误的镜头:

Screen shot of the error:

IE显示另一个错误:
[$喷油器:NOMOD]模块'ngLocale不可!
你要么拼写错误的模块名称,或忘了加载它。
如果注册一个模块,确保您指定的依赖
 作为第二个参数。
http://errors.angularjs.org/1.2.16/$injector/nomod?p0=ngLocale
这我忽略了现在。

IE shows another error: [$injector:nomod] Module 'ngLocale' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument. http://errors.angularjs.org/1.2.16/$injector/nomod?p0=ngLocale which I am ignoring for now.

请建议我对这个东西。
谢谢你。

Please suggest me something on this. Thanks.

推荐答案

我从1.3.4切换到1.4.8,并且做的伎俩。没有更多的角度拒绝访问的I.E. (微软边缘25 2015年)。我不知道为什么。

I switched from 1.3.4 to 1.4.8 and that did the trick. No more Angular Access Denied in I.E. (Microsoft Edge 25 2015). I don't know why.

<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.8/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-route.js/1.4.8/angular.min.js"></script>

这篇关于访问在AngularJS被拒绝在IE11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆