Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache flex 有关沙盒的Flash安全性错误。强制加载PolicyFile,但它没有';行不通_Apache Flex_Actionscript 3_Sandbox_Crossdomain.xml - Fatal编程技术网

Apache flex 有关沙盒的Flash安全性错误。强制加载PolicyFile,但它没有';行不通

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

我的服务器上有一个crossdomain.xml。但它不在“/”中。我使用
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将它放在那里解决问题吗?