Hi ! is there anyone to help me?
Everything was working ok till I start getting this error from server:
Access to XMLHttpRequest at 'https://newsapi.org/v2/everything?q=javascript+&language=en&sortBy=relevancy&pageSize=100&apiKey=MY-API' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I am calling the API directly from my frontend (react js) and print some news on my page. vey simple
ps: i have removed my api id from the above code....