简体   繁体   中英

How to get iFrame source code inside a webview?

I want to get iFrame source code inside a webview, but I am getting an error :-

"Uncaught SecurityError: Blocked a frame with origin "http://........." from accessing a frame with origin "https://.........".  The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "https". Protocols must match.

Please throw some insight into the error.

NB:- I cannot change the address from http to https.

有了那个错误日志,我认为主 URL 的协议是 http:// 并且你想添加带有 url 协议 https:// 的 iFrame 它会抛出那个异常,你可以尝试使用相同的协议 http:// 在这种情况下。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM