Home  >  Q&A  >  body text

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

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

伊谢尔伦伊谢尔伦2713 days ago470

reply all(1)I'll reply

  • 迷茫

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

    The problem is caused by the child page JS accessing the parent page JS. Cross-domain. Solved by postmessage.

    reply
    0
  • Cancelreply