本文介绍了Flash安全性错误#2048:是否有解决方法或者Twilio是否必须更改其元策略?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Flash / Flex应用程序有问题。有几个月,它能够从Twilio下载文件,但现在我得到以下错误:

(我必须删除超链接,所以想象一下ttp )

lockquote
SecurityErrorEvent
type =securityErrorbubbles = false
cancelable = false eventPhase = 2
text =错误#2048:安全沙箱
违规:
ttp://localhost/myapp.swf?v = 1不能
从$ b加载数据$ b ttp://api.twilio.com/。

我在我的flash插件上启用了策略记录,并获得以下消息:b
$ b

所以在我看来,问题在于Twilio没有指定一个元策略。有没有一种方法可以解决这个问题?

解决方案

localhost 和 twilio.com 不在同一个域中,所以当然你会得到一个安全错误。 Twilio需要将此节点添加到crossdomain中:

 < site-control allowed-cross-domain-policies =all /> 

另外,请确保您的嵌入符合标准:

  allowcriptaccess =always
allownetworking =all

如果Twilio不会更新crossdomain.xml,那么您可以在承载您的Flex应用程序的服务器上安装代理,并通过您的代理获取数据。


My Flash/Flex application is having a problem. For a few months it was able to download files from Twilio but now I'm getting the following error:

(I've had to remove hyperlinks, so imagine "ttp" is really "http". :)

I enabled policy logging on my flash plugin and get the following messages:

So it looks to me like the problem is that Twilio doesn't specify a "meta-policy". Is there a way for me to get around this?

解决方案

localhost and twilio.com are not in the same domain so of course you will get a security error. Twilio needs to add this node into the crossdomain:

<site-control permitted-cross-domain-policies="all"/>

Also, make sure your embedding is up to par:

allowscriptaccess = "always"
allownetworking = "all"

If Twilio won't update the crossdomain.xml then you can install a proxy on the server hosting your flex app and grab the data via your proxy.

这篇关于Flash安全性错误#2048:是否有解决方法或者Twilio是否必须更改其元策略?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 15:20