el navegador me bota este error al tratar de consumir API, no se que puede ser:
Failed to load https://bitscoinmarketcap.com/ws/v1/ticker/?coinName=bitcoin: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
mi código:
$.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");
});