I\'m trying to do a GET request on wikipedia API. Using jQuery as below works fine:
$.ajax({
url: \'https://en.wikipedia.org/w/api.php?format=json&acti
Recommended way to access JSONP with axios is actually to not use axios:
A similar question
Alternative Suggestion from Axios
In short install:
npm install jsonp --save
use it like:
var jsonp = require('jsonp');
jsonp('http://www.example.com/foo', null, function (err, data) {
if (err) {
console.error(err.message);
} else {
console.log(data);
}
});