Blocked a frame with origin "http://127.0.0.1:8080" from accessing a cross-origin frame.已解决

Blocked a frame with origin "http://127.0.0.1:8080" from accessing a cross-origin frame.

 

解决方法:

假如当前的项目的域名端口是http://192.168.0.232:8080,通过页面的iframe访问http://127.0.0.1:8080/file_system/,并接收http://127.0.0.1:8080/file_system/传过来的消息。

如果这是直接在子页面上调用parent.document.getElementById("parentUrl").value=''给父页面传值,就遇到上面跨域问题。

 

解决方法就是:http://www.yayihouse.com/yayishuwu/chapter/1849

你可能感兴趣的:(Blocked a frame with origin "http://127.0.0.1:8080" from accessing a cross-origin frame.已解决)