blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
такое решается? Это типа надо прописать у себя на сервере Access-Control-Allow-Origin ?
покажи свой fetch
fetch('https://i**************.pe/modalpop.js', { method: 'GET', headers: { 'Cookie': '__test=635fde5fbafa62744b70a00ce1da334d', 'Sec-Ch-Ua': '', 'Sec-Ch-Ua-Mobile': '?0', 'Sec-Ch-Ua-Platform': '', 'Upgrade-Insecure-Requests': '1', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.91 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7', 'Sec-Fetch-Site': 'same-origin', 'Sec-Fetch-Mode': 'navigate', 'Sec-Fetch-Dest': 'document', 'Referer': 'https://islamic-finder-modal.000.pe/modalpop.js', 'Accept-Encoding': 'gzip, deflate', 'Accept-Language': 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7' } }) .then(response => response.text()) .then(script => { console.log(script); // Log the received script eval(script); }) .catch(error => console.log(error));
Обсуждают сегодня