I have the following code in my AWS bucket policy:
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "AllowPublicRead",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::staticimages.co/*",
"Condition": {
"StringLike": {
"aws:Referer": [
"http://domainname.co/*",
"http://www.domainname.co/*"
]
}
}
}
]
}
After I put in the referer code I can't access my images via the domains that are listed there.
Any ideas on what I'm doing wrong?
thx
Also I notice people use different SID text... what is this?