文章详情页
html5 - iframe src可以引入其他域名或者IP吧iframe src可以是其他域名过IP吧
浏览:272日期:2023-01-20 09:39:39
问题描述
我的域名是aa.com,加入一个iframe,引入bb.com或者其他外网,但是老是提示Uncaught SecurityError: Blocked a frame with origin。。。 不知道为什么。。。
问题解答
回答1:是有子页JS访问父页JS引起问题。跨域了。通过postmessage来解决。
标签:
Html5
相关文章:
排行榜

网公网安备