×
=0) { let js = text.slice(pos1, pos2); + '<\/' + "script" + '>'; arrText.push(js); // next pos1 = pos2; continue; } } } break; } return arrText; } function OpenDialog(parentDiv, urlContent) { parentDiv = document.getElementById('modal-background'); // new !!!!!!! parentDiv.appendChild(document.getElementById('modal-template')); document.getElementById('modal-background').style.display = "block"; document.getElementById('modal-template').style.display = "flex"; // !!!!! document.getElementById('modal-body').innerHTML = ""; post_url(urlContent, "", function(text_from_server) { var element = document.getElementById('modal-body'); element.innerHTML = text_from_server; // add scripts var arrJSText = get_scripts(text_from_server); for (var i=0; i
dir.by
Search
Programming, development, testing
→
Интернет браузер "Google Chrome"
→
Error in Google Chrome: "Access to ... blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access"
Looked at
5136
times
Error in Google Chrome: "Access to ... blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access"
last updated: 14 October 2020
Error:
Access to url at 'http://...' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
Решение!
На рабочем столе для иконки
Google Chrome
добавим парметры:
--user-data-dir="C://Chrome dev session" --disable-web-security
Запустим
Google Chrome
нажав на иконку.
Введем url, ошибки нет.
← Previous topic
Интернет браузер "Google Chrome". Где скачать?
Next topic →
Как добавить на рабочий стол иконку Google Chrome (разные profile)
Your feedback ... Comments ...
Your Name
Your comment
(www links can only be added by a logged-in user)
+ Picture
Объявления
Объявления
•
Интернет браузер "Google Chrome". Где скачать?
•
Error in Google Chrome: "Access to ... blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access"
•
Как добавить на рабочий стол иконку Google Chrome (разные profile)
Ваши вопросы присылайте по почте:
info@dir.by