Skip to content

Instantly share code, notes, and snippets.

@lardissone
Last active December 29, 2015 11:28
Show Gist options
  • Save lardissone/7663446 to your computer and use it in GitHub Desktop.
Save lardissone/7663446 to your computer and use it in GitHub Desktop.
app.controller("KBHomeController", function ($scope, $http) {
$scope.loading = true;
$http.defaults.useXDomain = true;
// Esto en realidad lo hice siempre en el app.config, pero debería ser lo mismo:
delete $http.defaults.headers.common['X-Requested-With'];
// ---
$http.get('http://kbase.movistararg.com/api/movistar/question/top/5').success(function(data) {
$scope.technicalhelp=data;
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment