the browser throws me this error when trying to consume API, I do not know what it can be:
Failed to load link : No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
my code:
$.ajax({
url: 'https://bitscoinmarketcap.com/ws/v1/ticker/?coinName=bitcoin',
type: "get",
dataType: 'json',
})
.done(function(recursos) {
console.log(recursos)
})
.fail(function() {
console.log("error api");
});