开发者

Flex - Security Sandbox violation - ERROR#2048

开发者 https://www.devze.com 2023-02-13 23:41 出处:网络
So if i put -http://xxx.xx.xx.x/website/website.htmland try to use an HTT开发者_开发知识库PService with in the swf to contact -https://yyy.yy.yy.y/resources/script, I get the sandbox error.

So if i put -http://xxx.xx.xx.x/website/website.html and try to use an HTT开发者_开发知识库PService with in the swf to contact -https://yyy.yy.yy.y/resources/script, I get the sandbox error. If I put -https://yyy.yy.yy.y/crossdomain.xml in the browser and access it everything in the crossdomain file looks fine. wWen i go back and try to use the HTTPService from -http://xxx.xx.xx.x/website/website.html everything now works until i close the browser which i assume clears the cache.

********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>

********Action Script*************

Security.loadPolicyFile("https://xxx.xx.xx.x/crossdomain.xml");


Change the following line:

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

to:

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

You can read more about it at adobe.com...

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


We found that Chrome will refuse self-signed SSL certificates but Firefox and Safari will plow on ahead. Try a different browser and see if that works for you.

0

精彩评论

暂无评论...
验证码 换一张
取 消