XMLHttpRequest cannot load ЗДЕСЬ-ССЫЛКА. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access. The response had HTTP status code 400.
$.ajax({
type: 'get',
url: link,
success: function(data) {
console.log(data);
}
});