I'm developing an Angular application and I'm using the default $httpService for the http requests.
The application run correctly on all my devices but not on my [G]old Samsung Galaxy s2 (using the default browser).
On the first request I get the following error:
{
"data":null,
"status":-1,
"config": {
"method":"GET",
"transformRequest":[null],
"transformResponse":[null],
"url":"http://....",
"headers": {
"Accept": "application/json, text/plain, */*",
"Authorization": "Basic ....."
}
},
"statusText":""
}
I'm not able to figure out where the problem is.
The code is the following:
this.http.get(WebServices.localizations + this.currentLanguage.locale), success => {
var localizationsJson = <any[]>success.data;
var localizations = {};
....
});
Thanks!