在s3存储桶文件上传中遇到错误跨域请求被阻止

时间:2019-06-10 09:58:14

标签: amazon-web-services amazon-s3

我是s3存储桶AW中的新手,当我尝试在s3存储桶中上传文件时,出现错误:Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://xxxxxxx.com,有人可以帮助我解决此问题吗?

CORS配置

<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
    <AllowedOrigin>*</AllowedOrigin>
    <AllowedMethod>PUT</AllowedMethod>
    <AllowedMethod>POST</AllowedMethod>
    <AllowedMethod>GET</AllowedMethod>
    <AllowedMethod>DELETE</AllowedMethod>
    <AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>

0 个答案:

没有答案