文章详情页
html5 - iframe src可以引入其他域名或者IP吧iframe src可以是其他域名过IP吧
浏览:287日期:2023-01-20 09:39:39
问题描述
我的域名是aa.com,加入一个iframe,引入bb.com或者其他外网,但是老是提示Uncaught SecurityError: Blocked a frame with origin。。。 不知道为什么。。。
问题解答
回答1:是有子页JS访问父页JS引起问题。跨域了。通过postmessage来解决。
标签:
Html5
相关文章:
1. javascript - 请问这段 el && fn.call(el, e, el)代码这么写什么意思?2. pdo_mysql 值自增写法3. css - 这些字体是怎么弄的?4. 如何解决tp6在zend中无代码提示5. python - requests post问题6. javascript - JS 里面的 delete object.key 到底删除了什么?7. javascript - chart.js如何修改某个指定bar的颜色8. html - 关于css选择器的问题9. python - 怎样在linux下开发flask web应用时查看代码出错(traceback)的地方。10. PHP中的$this代表当前的类还是方法?
排行榜

网公网安备