Как произвести ajax запрос? При простейшем коде выдает ошибку:
$.ajax({
url: "http://google.com",
success: function() {
alert('asd'); }
});
Ошибка
XMLHttpRequest cannot load google.com/. Redirect from 'google.com/' to 'http://www.google.com/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access