Cannot access iframe cross-origin?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Cannot access iframe cross-origin?

Postby tiplip » Fri Jun 25, 2021 5:10 am

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?
tiplip
Mentor
 
Posts: 76
Joined: Thu Mar 26, 2015 3:09 am

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 34 guests