Вы можете использовать jQuery JSONP:
$.ajax( {
url: "https://en.wikipedia.org/w/api.php",
jsonp: "callback",
dataType: 'jsonp',
data: {
action: "query",
list: "search",
srsearch: "javascript",
format: "json"
},
xhrFields: { withCredentials: true },
success: function(response) { ... }
}