ruslan_mart, мне кажется, это не работает. У меня указано так:
Код:
|
"host_permissions": ["*://*.site.com/*"],
"permissions": ["scripting", "activeTab", "storage"], |
Цитата:
|
Access to XMLHttpRequest at 'https://www.site.com/example.xml' from origin 'https://sub.site.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
|
let req = new XMLHttpRequest();
req.open("GET", url);
req.onload = () => {
console.log("RESPONSE:");
console.log(this.response);
}
console.log(url);
req.send();