用fushioncharts 做了个,显示数据的饼状图,在本机测试良好,放到服务器上 挂了。看log,报错:
ActionController::RoutingError (No route matches "/crossdomain.xml" with {:method=>:get})
google,说跨域访问需要建一个crossdomin.xml 文件。(很奇怪,我的应用在一个站点内,怎么会跨域了呢)
先解决问题,在 /public 下新建一个 crossdomain.xml 文件,写入
<?xml version="1.0"?>
<!-- http://www.adobe.com/crossdomain.xml -->
<cross-domain-policy>
<allow-access-from domain="*.com" />
</cross-domain-policy>
重启,OK
分享到:
相关推荐
flash跨域访问策略。渗透测试时检查crossdomain.xml配置信息,应当重点检查allow-access-from=*、allow-...特别注意参数为*和all,当站内没有crossdomain.xml时将不允许flash跨域访问。不会导致漏洞
crossdomain.xml用于unity3d生成的webplayer不能读取数据库的问题,用于unity3d生成的webplayer不能读取数据库的问题
NULL 博文链接:https://baixiaozhe.iteye.com/blog/793452
NULL 博文链接:https://wanller.iteye.com/blog/1106243
虽然目前还没有多少框架,但您需要利用过度宽松的 crossdomain.xml 文件所需的一切都在这里。 支持的操作系统 卡利 操作系统 下载和设置 root@kali:~ # git clone ...
解决tomcat在IP 和端口不同时引起的跨域问题,解决方案,通过编写crossDomain.xml文件
跨域策略文件crossdomain,放至服务器IIS根目录
配置tomcat6的跨域访问问题,包含两个xml配置文件clientaccesspolicy.xml,crossdomain.xml,以及两个jar包cors-filter-1.7.1.jar,java-property-utils-1.9.1.jar
如何实现crossdomain.xml文件以允许Flash客户端连接到我的网站
跨域扫描仪扫描域的crossdomain.xml文件是否存在过期的安全问题。设置pip install -r requirements.txt
Flex跨域问题,对于Flash Player 而言,crossdomain.xml文件内容出现了较大的变化,原因是Flash Player 9的security机制有所改变。所以当我用Flex 3调用cross domain的web service时,还使用上面的crossdomain.xml...
Cross Domain will help you to deal with cross domain - CORS problem. This is tool helpful when face with cross domain issue.
flex访问地图的时候会遇到安全沙箱问题,引起地图不能访问。这里的crossdomain.xml放在服务器上就可解决这个问题。需要的请下载……
flash跨域crossdomain 设置项使用,直接可用允许全部跨域请求
解决springboot技术前后端分离的大文件上传解决问题,前端是静态页面采用web上传组件,QQ联系625516717
本程序为绿色mini服务程序 程序会自动打开Flash默认的843端口 自动将crossdomain.xml返回给flash客户端 您可以修改crossdomain.xml中的内容,大小不要超过10K
我按照网上的方法把那个crossdomain.xml文件在根目录放了个遍,还是不行。 真正解决我问题的操作是这样的,在安装 arcgis后,C:\Inetpub\wwwroot\ArcGis\rest\的下面有个crossdomain.xml,把这个文件复制到C:\...
B域(子页面)中的文件crossdomain.js 实现跨域的关键文件,用于动态生成跳转的iframe;var crossDomain = new CrossDomain('<A>/cross_domain_transfer.html'); //初始化跨域类,传入目标域的跨域跳转页面...