Im attempting to make an AJAX
request using this url http://api.adorable.io/avatars/285/sd I've set crossDomain to true but still the request fails each time with this error.
No 'Access-Control-Allow-Origin' header is present on the requested resource.
It's not possible to make the request using http://www.api.adorable.io/avatars/285/sd. What am I dong wrong here? Please help
$(document).ready(function(){
$.ajax({
url: "http://api.adorable.io/avatars/285/sd",
type: "GET",
crossDomain: true, // enable this
success: function (data) {
console.log(data);
}
});
});