Iframe跨域错误Permission denied for to get property 博客分类: js_css_html_xml_nodejs
程序员文章站
2024-03-22 14:25:40
...
Iframe跨域错误:
Permission denied for [site1] to get property Location.href from [site 2]
Permission denied for <site1> to get property Window.document from <site2>.
实际的问题是:从iframe里控制上层的窗口(window和domcument)是不安全的,跨域即会被限制访问。
这里也是同样的问题:
http://*.com/questions/1292257/suppressing-permission-denied-errors-in-javascript
另外可以参考:javascript跨域共享的内容
http://hi.baidu.com/superlinyzu/blog/item/867ea6f0cecbcad07831aa27.html
O
O
O
--
0
0
0
0
0