How to solve the problem that iOS gets the iframe sub-page and reports an error SecurityError,?

I contentWindow to get the elements of the page in iframe.
this error will be reported if there is no cross-domain in the chrome browser:
ERROR DOMException: Blocked a frame with origin "http://localhost:8100" from accessing a cross-origin frame.
, and the error will not be reported on the Android tablet.

but in the iOS tablet and safari will report errors Uncaught SecurityError, found a lot, still do not know how to solve, ask for God"s help!

Mar.07,2021

Hello, have you solved it? I have the same problem!


this is a security issue for browsers. You need to write a shell subprogram and modify the security restrictions to run ~

.
Menu