jwood803
10/4/2013 - 10:08 PM

Snippet to, if needed, allow cross domain to fetch data.

Snippet to, if needed, allow cross domain to fetch data.

jamendoApp.config(['$httpProvider', function($httpProvider) {
    $httpProvider.defaults.useXDomain = true;
    delete $httpProvider.defaults.headers.common['X-Requested-With'];
}]);