Amazon S3 crossdomain.xml始终显示403 Forbidden

时间:2012-12-27 06:21:23

标签: file-upload amazon-s3 cross-domain http-status-code-403 plupload

我使用plupload将文件直接上传到Amazon S3。我将crossdomain.xml文件添加到Amazon中。当我尝试plupload中给出的示例代码将文件上传到S3时我得到了

  

GET http://xxxx.s3.amazonaws.com/crossdomain.xml 403(禁止)

我的crossdomain.xml是

 <?xml version="1.0"?>
 <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-     policy.dtd">
 <cross-domain-policy>
 <allow-access-from domain="*" secure="false" />
 </cross-domain-policy>

1 个答案:

答案 0 :(得分:0)

您是否在对象上设置了公共读取acl或对存储桶上的getobject权限?

http://docs.aws.amazon.com/AmazonS3/latest/dev/ACLOverview.html