I want to call API with axios, and my problem is that when I paste the endpoint in my browser it return the JSON response, but when I call it with axios i got an error any idea why ?
axios
.get("https://remotive.io/api/remote-jobs")
.then((res) => console.log(res));
Error :
Access to XMLHttpRequest at 'https://remotive.io/api/remote-jobs' from origin 'http://localhost:3001' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.