Flex的 - 安全沙箱冲突 - 错误#2048 [英] Flex - Security Sandbox violation - ERROR#2048

查看:390
本文介绍了Flex的 - 安全沙箱冲突 - 错误#2048的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,如果我把 - HTTP://xxx.xx.xx.x/website /website.html ,并尝试使用的HTTPService与在SWF联系 - 的https: //yyy.yy.yy.y/resources/script ,我得到了沙箱错误。 如果我把 - 的https://yyy.yy.yy.y/crossdomain.xml 在浏览器和访问它的一切在跨域文件看起来不错。 wWen我回去,并尝试使用HTTPService从 - HTTP://xxx.xx.xx .X /网站/ website.html 的一切现在工作,直到我结束我以为清除缓存。

浏览器

********的crossdomain.xml *********

 < XML版本=1.0&GT?;
<交域政策>
  <现场控制允许交叉域策略=主只有/>
  <允许存取来自域=*/>
  <允许-HTTP请求报头,从域=*标题=*/>
< /跨域策略>
 

********动作脚本*************

 在Security.loadPolicyFile(HTTPS://xxx.xx.xx.x/crossdomain.xml);
 

解决方案

更​​改以下行:

 <允许存取来自域=*/>
 

 <允许存取来自域=*安全=FALSE/>
 

您可以阅读更多关于它在adobe.com ...

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

So if i put -http://xxx.xx.xx.x/website/website.html and try to use an HTTPService 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

这篇关于Flex的 - 安全沙箱冲突 - 错误#2048的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆