AngularJS - Calling Flickr API fails with warning message

你离开我真会死。 提交于 2019-12-06 00:50:23
joakimbl

The X-Requested-With request header causes problems - see this question for more information. The following code should fix the problem:

angular.module('photoApp').config(function($httpProvider){
  delete $httpProvider.defaults.headers.common['X-Requested-With'];
});

I faced the same issue with IE10. I added the url which makes CORS call as a trusted site in IE10 and it worked fine. I suggest you do the same. Perhaps it will help.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!