Why am I getting 403 frobidden while displaying images on s3?

I'm trying to migrate from local storage to Amazon S3. But now when I try to display the image on through s3 url on my website I get an 403 forbidden error. The bucket as public access and I have the following CORS configuration on the bucket:

<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
    <AllowedOrigin>*</AllowedOrigin>
    <AllowedMethod>GET</AllowedMethod>
    <MaxAgeSeconds>3000</MaxAgeSeconds>
    <AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>

What am I missing?

链接地址: http://www.djcxy.com/p/93550.html

上一篇: WCF服务返回一个字典<string,object>的数组

下一篇: 为什么我会在s3上显示图像时得到403 frobidden?