Blocked a frame with origin "null&q

错误提示:Blocked a frame with origin "null" from accessing a cross-origin frame.

由于iframe导致跨域:
1、地址为file:///开头的

2、请求页面为http://开头


解决办法:放在环境中运行,推荐tomcat或者wampp环境部署。

猜你喜欢

转载自blog.csdn.net/qq_27751965/article/details/99132329