I'm simply trying to feed my application with Steam api data.
Let's take this example: http://api.steampowered.com/ISteamUserStats/GetGlobalAchievementPercentagesForApp/v0002/?gameid=440&format=xml
Paste into the browser and will work as intended.
But when I do in AngularJS
:
function getData(){
return $http.get('aquela url')
.then(function(response){
return response.data;
})
.catch(function(err){
console.log(err);
});
}
It always falls into catch, with statuscode:0
as if the server was actively refusing my request.
What am I doing wrong?