Does Wikipedia API support CORS or only JSONP available?
问题 This question related to another question, which was asked year ago. Author asked how to make cros-origin request using JavaScript and Wikipedia API and one comment was: en.wikipedia.org doesn\'t seem to allow CORS and he was advised to use JSONP instead. I know I can use JSONP, but I prefer CORS if I can use it. I tried on jsfiddle var url = \"https://en.wikipedia.org/w/api.php?action=query&titles=Main%20Page&prop=revisions&rvprop=content&format=json\"; $.ajax({ url: url, data: \'query\',