加载SWF从AmazonS3

编程入门 行业动态 更新时间:2024-10-15 16:26:15
本文介绍了加载SWF从AmazonS3 - 跨域策略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个Flash应用程序坐在DomainA中,需要加载一个swf它来自一个Amazon S3存储。 在负载我碰到下面的错误。 错误#2044:未处理的securityError :.文本=

I have a flash app sitting in domainA which needs to load a swf which comes from an Amazon S3 bucket. On load I get the following error. "Error #2044: Unhandled securityError:. text="

我已经把一个跨域文件中的桶和presumed,会做的伎俩。 我怎样才能解决这个问题?

I have put a crossdomain file in the bucket and presumed that would do the trick. How can i fix this?

推荐答案

您可以使用S3存储桶名称的DNS访问。因此,而不是s3.amazon/bucketname/filename的是bucketname.s3.amazon/filename。使用这种方法,你可以把自己的跨域文件的根路径

You can access S3 using bucket name DNS. So instead of s3.amazon/bucketname/filename it is bucketname.s3.amazon/filename. Using this method you can put your own crossdomain file in a root path

<allow-access-from domain="bucketname.s3.amazonaws" />

更好的方法是使用CNAME记录DNS服务器上假货的根源您的跨域文件。例如,

The better method is to use CNAME records on your DNS server to fake the root for your crossdomain file. e.g.

请您的DNS服务器上的CNAME记录指向bucketname.yourdomainname到bucketname.s3.amazon

Make a CNAME record on your DNS server to point bucketname.yourdomainname to bucketname.s3.amazon

然后把你的跨域文件中的水桶根

And then put your crossdomain file in that buckets root

<allow-access-from domain="bucketname.yourdomainname" />

和参考Flash文件作为bucketname.yourdomainname/flash.swf等

And refer to flash files as bucketname.yourdomainname/flash.swf etc

更多推荐

加载SWF从AmazonS3

本文发布于:2023-11-03 19:00:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1555829.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:加载   SWF

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!