Привет! Подскажите пожалуйста, как обойти ошибку.
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://up.htmlacademy.ru/assets/javascript/demo/8-xhr/data.json');
console.log(xhr.readyState);
xhr.responseType = 'json';
xhr.send();
ошибка:
Access to XMLHttpRequest at 'https://up.htmlacademy.ru/assets/javascript/demo/8-xhr/data.json' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.