Created an extension for Chrome, and it worked.
I decided to redo this extension into the site.
There was a question about this error:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
In Chrome, there is a manifest.json file in which you could do this:
"permissions": [ "http://name.ru/*", ] And the problem was solved, but I do not know how to solve this problem on LAN.
The request looks like this:
function start () { xhr = new XMLHttpRequest(); xhr.open("GET", "http://name.ru", true); xhr.send(null); xhr.onreadystatechange = function() { if (xhr.readyState == 4) { if (xhr.responseText) { // тут функции } } }; I do not have access to the site, the extension took information from it for work.