看板直接查询不会报错,通过URL地址放置到MES系统当作一个页面的时候报错了,如图
js脚本运行异常:Blocked a frame with origin http://192.168.2.11.8080" from accessing a cross-origin frame.
删除了结束事业后 就好了, 不报错了
根据报错信息 Blocked a frame with origin "xxx" from accessing a cross-origin frame,是 跨域访问导致的浏览器安全限制。当通过iframe将FineReport看板嵌入不同域名的MES系统时,浏览器阻止了跨域资源的直接访问。
参考文档:https://help.fanruan.com/finereport/doc-view-1241.html
你把你的 JS 复制出来,放上来
跨域了吧~
iframe跨域调用报表报错 https://help.fanruan.com/finereport/doc-view-2700.html
跨域了