Working on a new Laravel project that involves car data and found a free look up API.
http://www.carqueryapi.com/documentation/api-usage/
An example endpoint is:
https://www.carqueryapi.com/api/0.3/?callback=?&cmd=getMakes
This works fine on PostMan with a normal GET request.
However in Vue.js using Axios:
getAllMakes: function() {
axios.get("https://www.carqueryapi.com/api/0.3/?callback=?&cmd=getMakes").then(function(response) {
console.log(response);
});
}
I get a CORS issue:
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Is there anything I can do? Or some the API is blocking?