我正在开发一个Angular应用程序,并且对http请求使用默认的$httpService。
该应用程序可以在我的所有设备上正常运行,但不能在我的Gold Samsung Galaxy s2 (使用默认浏览器)上运行。
在第一次请求时,我得到以下错误:
{
"data":null,
"status":-1,
"config": {
"method":"GET",
"transformRequest":[null],
"transformResponse":[null],
"url":"http://....",
"headers": {
"Accept": "application/json, text/plain, */*",
"Authorization": "Basic ....."
}
},
"statusText":""
}我不知道问题出在哪里。
代码如下:
this.http.get(WebServices.localizations + this.currentLanguage.locale), success => {
var localizationsJson = <any[]>success.data;
var localizations = {};
....
});谢谢!
发布于 2016-02-16 04:32:06
https://stackoverflow.com/questions/33582894
复制相似问题