I'm creating a webapp in electron, a web-crawler with a neural network, which needs all webSecurities to be disabled
i tried modifying the headers (X-Frame-Origin
,access-control-allow-origin
etc..) , using flags like chrome --allow-file-access-from-files --disable-web-security --user-data-dir=""
etc... nothing seems to remove the error above
The iframe is showing the ORIGIN restricted websites after i modified the xframe header, but when i try to access its document, the error above pops
i tried running it in chrome and firefox, and the same behaviour is encoutered
been googling for 4 hours now and i can't seem to find an appropriate answer. if you think this is a duplicated please include a link, it would help a lot
i found the solution ,the disable site isolation trial should be toggled on :
app.commandLine.appendSwitch('disable-site-isolation-trials')