我想在webview中获取iFrame源代码,但我收到错误: -
"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.
请仔细了解错误。
注意: - 我无法将地址从http更改为https。
答案 0 :(得分:0)
使用该错误日志,我认为主URL的协议是http://并且您想要使用url协议https://添加iFrame它会抛出该异常,您可以尝试使用相同的协议http://情况下。