因此,如果我输入 - http://xxx.xx.xx.x/website/website.html 并尝试在 swf 中使用 HTTPService 来联系 - https://yyy.yy.yy.y/resources/script,我得到沙盒错误。如果我将 - https://yyy.yy.yy.y/crossdomain.xml 放在浏览器中并访问它,跨域文件中的所有内容看起来都很好。wWen 我回去尝试使用来自 - http://xxx.xx.xx.x/website/website.html的 HTTPService 现在一切正常,直到我关闭我假设清除缓存的浏览器。
********crossdomain.xml*********
<?xml version="1.0" ?>
<cross-domain-policy>
<site-control permitted-cross-domain-policies="master-only"/>
<allow-access-from domain="*"/>
<allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>
********动作脚本**************
Security.loadPolicyFile("https://xxx.xx.xx.x/crossdomain.xml");