3
When trying to perform a simple search on Deezer API (Public Search API without Need for Authentication Key) I get the following error message as return:
XMLHttpRequest cannot load http://api.deezer.com/search?q=Bang. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.
The Code used to perform the search:
$.getJSON(
"http://api.deezer.com/search?q=Bang",
function(dados) {
console.log(dados);
}
);
Very useful @marcusagm
– Danilo Pádua