1

我有一个 iframe 链接到不同服务器中的网站,我收到此错误:

Blocked a frame with origin "http://www.domain1.net" from accessing a frame with origin "http://www.domain2.org". Protocols, domains, and ports must match

我怎样才能让它消失?我需要操作 iframe 的 DOM。

我可以访问 iframed 服务器,我是否应该配置其他东西...

Header set Access-Control-Allow-Origin "www.domain1.net"

...允许从 domain1.net 服务器访问?

4

0 回答 0