Wikipedia viewer api error

Wikipedia viewer api error
0

#1

const req= data => {
return https://en.wikipedia.org/w/api.php?format=json&action=query&generator=search&gsrnamespace=0&gsrlimit=10&prop=pageimages|extracts&pilimit=max&exintro&explaintext&exsentences=1&exlimit=max&gsrsearch=${data};
};

const builder = async s => {
const data = await fetch(req(s));
const response = await data.json();
};

there is a error in console No ‘Access-Control-Allow-Origin’

Who build wikipedia viewer pls answer how did you fix this problem, or give another api =) Thanks.


#2

Our forum has a really good search feature: No Access-Control-Allow-Origin


#3

Sorry, Didn’t think about this :pensive:


#4

I figured I’d save you the time of waiting for a lot of the same answers :wink:


#5

yeah it’s a true :slight_smile: