j
.
Size: a a a
j
j
M
M
a
setInterval(async ()=>{
var text;
try{
text = await fetch('https://cors-anywhere.herokuapp.com/http://mppn.ru:55550/').then(s=>s.text());
}catch(e){
text = 'ошибка: '+(e?.message||e);
}
document.querySelector('#count').innerText = text;
},30*1000);a
async function f(){
var text;
try{
text = await fetch('https://cors-anywhere.herokuapp.com/http://mppn.ru:55550/').then(s=>s.text());
}catch(e){
text = 'ошибка: '+(e?.message||e);
}
document.querySelector('#count').innerText = text;
}
setInterval(f,30*1000);
f();S
async function f(){
var text;
try{
text = await fetch('https://cors-anywhere.herokuapp.com/http://mppn.ru:55550/').then(s=>s.text());
}catch(e){
text = 'ошибка: '+(e?.message||e);
}
document.querySelector('#count').innerText = text;
}
setInterval(f,30*1000);
f();
M
setInterval(async ()=>{
var text;
try{
text = await fetch('https://cors-anywhere.herokuapp.com/http://mppn.ru:55550/').then(s=>s.text());
}catch(e){
text = 'ошибка: '+(e?.message||e);
}
document.querySelector('#count').innerText = text;
},30*1000);M
a
https://cors-anywhere.herokuapp.com/ (это сервис который добавляет те самые заголовки и через себя пропускает запросы) самому на этом сервисе ставить заголовки.Access-Control-Allow-Origin: *'https://cors-anywhere.herokuapp.com/http://mppn.ru:55550/'
'http://mppn.ru:55550/' или 'https://mppn.ru:55550/'p
M
a
p
p
p
Dv

M
p
p