Apache flex 有关沙盒的Flash安全性错误。强制加载PolicyFile,但它没有';行不通
我的服务器上有一个crossdomain.xml。但它不在“/”中。我使用Apache flex 有关沙盒的Flash安全性错误。强制加载PolicyFile,但它没有';行不通,apache-flex,actionscript-3,sandbox,crossdomain.xml,Apache Flex,Actionscript 3,Sandbox,Crossdomain.xml,我的服务器上有一个crossdomain.xml。但它不在“/”中。我使用loadPolicyFile加载这个crossdomain.xml Security.allowDomain("*") Security.allowInsecureDomain("*"); Security.loadPolicyFile(AddressContext.getCurrentEnv().split("rest")[0]+"crossdomain.xml") 策略文件的url如下:http://siteA.co
loadPolicyFile
加载这个crossdomain.xml
Security.allowDomain("*")
Security.allowInsecureDomain("*");
Security.loadPolicyFile(AddressContext.getCurrentEnv().split("rest")[0]+"crossdomain.xml")
策略文件的url如下:http://siteA.com/aop/crossdomain.xml
我的restfulwebservices地址如下:http://siteA.com/aop/rest/start
xml包括我的flash的主机url
奇怪的是flash仍然试图加载http://siteA.com/crossdomain.xml
像这样
第一个是正确的,回答是200。第二个响应是400
最后,闪光灯还是告诉我安全号是2048
我不知道为什么
Security.allowDomain("*")
Security.allowInsecureDomain("*");
这是无用的,它使您的SWF容易受到攻击
你能发布你跨域名的内容吗。您为元策略标记设置了什么值?据我所知,flash总是尝试从域根/加载crossdomain.xml。您能\n将它放在那里解决问题吗?