4

因此,如果我输入 - 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");
4

2 回答 2

12

更改以下行:

<allow-access-from domain="*"/>

至:

<allow-access-from domain="*" secure="false" />

您可以在 adobe.com 上阅读有关它的更多信息...

http://kb2.adobe.com/cps/142/tn_14213.html

于 2011-03-01T17:37:47.720 回答
2

我们发现 Chrome 会拒绝自签名 SSL 证书,但 Firefox 和 Safari 会继续前进。尝试其他浏览器,看看是否适合您。

于 2012-08-29T19:21:15.093 回答