Page 1 of 1

Cannot access iframe cross-origin?

PostPosted: Fri Jun 25, 2021 5:10 am
by tiplip
Hi

I was able to access iframe on 3239 and 49.2623 with switch disable-web-security

main frame is like http://myapp/test.html is registered scheme
iframe is like https://www.baidu.com/

tests\shared\browser\client_app_browser.cc
Code: Select all
command_line->AppendSwitch("disable-web-security");

js on main frame
Code: Select all
document.getDocumentId(id).contentWindow.document


but on v89, js returns null

is there any way to access iframe? or related source code in chromium or cef?