当前位置: 代码迷 >> JavaScript >> chrome上调用iframe内容报Unsafe JavaScript attempt to access frame
  详细解决方案

chrome上调用iframe内容报Unsafe JavaScript attempt to access frame

热度:795   发布时间:2013-01-26 13:47:01.0
chrome下调用iframe内容报Unsafe JavaScript attempt to access frame

你用chrome的F12的页面工具,就可以看到他提示的错误:

Unsafe JavaScript attempt to access frame with URL file:///D:/temp/p.html from frame with URL file:///D:/temp/c.html. Domains, protocols and ports must match.

所以,当你放到服务器上面或者放到HTTP服务器上面就没有问题了。

  相关解决方案