I'm trying to get a response using axios but keep getting a cors error. It perfectly works in postman. Maybe someone can help? The code is below:
axios({ url: "https://www.giantbomb.com/api/company/3010-82/?api_key=[API_KEY]&format=json", method: "get", })
.then((res) => { console.log("works"); })
.catch(() => { console.log("doesnt work"); });
Log in to comment