>  Q&A  >  본문

html5 - iframe src可以引入其他域名或者IP吧iframe src可以是其他域名过IP吧

我的域名是aa.com,加入一个iframe,引入bb.com或者其他外网,但是老是提示Uncaught SecurityError: Blocked a frame with origin。。。 不知道为什么。。。

伊谢尔伦伊谢尔伦2713일 전467

모든 응답(1)나는 대답할 것이다

  • 迷茫

    迷茫2017-04-17 14:53:47

    是有子页JS访问父页JS引起问题。跨域了。通过postmessage来解决。

    회신하다
    0
  • 취소회신하다