CORS header ‘Access-Control-Allow-Origin’ missing from Wikipedia API response [duplicate]
问题 This question already has an answer here : Does Wikipedia API support CORS or only JSONP available? (1 answer) Closed last year . I'm trying to fetch data from the Wikipedia API with axios in reactJS. This is my get request axios.get('https://en.wikipedia.org/w/api.php?action=opensearch&search=lol&format=json&callback=?') .then((response) => { console.log(response); }) .catch((error)=>{ console.log(error); }); I got this error: Cross-Origin Request Blocked: The Same Origin Policy disallows