Hi guys I'm trying to create a little app with VueJS and I want to use this API. For this purpose I'm using axios library but I'm having problems: This is the function:
axios.get('http://www.giantbomb.com/api/game/3030-4725/?api_key=KEY&format=json&field_list=genres,name') .then(function(response){ console.log(response); }) .catch(function(error){ console.log(error); })
And I have this error in the console:
XMLHttpRequest cannot load '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
Thanks guys!
Log in to comment