I'm working on my AngularJS project and I need to pull some data from Wikipedia. However, due to CORS restrictions, I am unable to access the information directly in Angular.
$scope.wikipediaData = $http.get('http://es.wikipedia.org/w/api.php?titles='+$scope.country.name.toLowerCase()+'&rawcontinue=true&action=query&format=json&prop=extracts');
Although the call is being made and I can see it in firebug, when I try to open the URL in a new tab, I am able to view the JSON response.
I have noticed in firebug that CORS needs to be activated, but I am struggling to find a solution despite trying various methods suggested on sites like StackOverflow.
Can anyone offer some guidance?
Thank you