Access-Control-Allow-Origin with Wikipedia API with Javascript
问题 Trying to receive a response from the Wikipedia API on Codepen. The reply should be a json which i'm trying to console.log. In the console however I see an error: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://en.wikipedia.org/w/api.php?action=opensearch&search=earth&format=json. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). I've read quite a bit over the past few days about CORS and Allow-Origin to try to understand but