Answer the question
In order to leave comments, you need to log in
How to disable cross domain js ban?
I want to parse the MTS website in JS from the browser. It is necessary that this code works from any or at least a predefined domain.
var MTS = window.open("https://login.mts.ru", "MTS");
setTimeout(function(){ // onload не слушается, пока что будет таймер
console.log(MTS.document.body.innerHTML); // забираем body
},5000);
Answer the question
In order to leave comments, you need to log in
https://chrome.google.com/webstore/detail/allow-co...
UPD:
Under windows, create a shortcut, or run from cmd
chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security
chromium-browser --disable-web-security
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question