Access Denied with $http request in Angular and IE8

I am trying to get my angular app to do an $http.get request. Works everywhere but IE8. I am using latest Angular (1.0.6 I think). The only message IE gives is:TypeError: Access is denied. undefined (in previous angular this was
) My host (nodejs)is set to send cors headers: res.header('Access-Control-Allow-Origin', '*'); //config.allowedDomains res.header('Access-Control-Allow-Credentials', true); res.header('Access-Control-Allow-Headers', 'X-Requested-With, Content-Type, X-Requested-By'); res.header('Access-Control-Allow-Methods', 'PUT, GET, POST, DELETE, OPTIONS'); I have tried to get more info about the error using debug tools but: Fiddler: doesn't show xmlhttprequests - seems you can hack your NET app to fix that but not sure what to do with my web page. DebugBar: doesn't show these requests either FirebugLite: 2 version I tried are broken - just random errors and doesn't load Changing the hosts to same origin clears the issue so I assume it's trying something but man it's hard to debug. Angular posts on this seem outdated and I am not sure what to do from here.

以上就是Access Denied with $http request in Angular and IE8的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准