[GET] 403 Forbidden
-
Hey guys,
I’ve been scouring the net for a while but can’t seem to get this to work.
I’m using a S3 bucket to host images exclusively, and using CloudFlare to distribute.
I’ve followed the exact spec set out by the CloudFlare help article about changing the CNAME.
I’m using the standard CORS config;
<?xml version="1.0" encoding="UTF-8"?> <CORSConfiguration xmlns="https://s3.amazonaws.com/doc/2006-03-01/"> <CORSRule> <AllowedOrigin>*</AllowedOrigin> <AllowedMethod>GET</AllowedMethod> <MaxAgeSeconds>3000</MaxAgeSeconds> <AllowedHeader>Authorization</AllowedHeader> </CORSRule> </CORSConfiguration>
And I’m using a policy by Amazon to display content to all users from the bucket without permissions.
{ "Version": "2012-10-17", "Statement": [ { "Sid": "AddPerm", "Effect": "Allow", "Principal": "*", "Action": [ "s3:GetObject" ], "Resource": [ "arn:aws:s3:::media.polarwest.co.uk/*" ] } ] }
After all of this, I’m still getting the [GET] 403 Forbidden error on all of my images…
Im at a total standstill with this, any help would be appreciated.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[GET] 403 Forbidden’ is closed to new replies.