文章详情页
html5 - iframe src可以引入其他域名或者IP吧iframe src可以是其他域名过IP吧
浏览:200日期:2023-01-20 09:39:39
问题描述
我的域名是aa.com,加入一个iframe,引入bb.com或者其他外网,但是老是提示Uncaught SecurityError: Blocked a frame with origin。。。 不知道为什么。。。
问题解答
回答1:是有子页JS访问父页JS引起问题。跨域了。通过postmessage来解决。
标签:
Html5
相关文章:
1. docker-compose中volumes的问题2. docker安装后出现Cannot connect to the Docker daemon.3. mysql - 我的myeclipse一直连显示数据库连接失败,不知道为什么4. docker网络端口映射,没有方便点的操作方法么?5. javascript - 在vuejs中如何根据变量去引用不同的css样式呢6. nignx - docker内nginx 80端口被占用7. 老师,按tab键不起作用怎么回事8. mysql - 执行sql查询操作时遇到奇怪的结果9. javascript - 用原生的js获取body和用jquery获取body的的margin值为什么不一样?10. javascript - $(document).scrollTop()与某个div的$(’#js_productWrap’).offset().top
排行榜

网公网安备