-1

I making a blog posting web site and also check different cors configurations for aws but any of this can solve this issue.Issue is urls in css files like

   @import url(fonts.css); background-image:
url("paper.gif");

and like these things is not working.And also in console I got a error like this

net::ERR_ABORTED 403 (Forbidden)

so any of font awesome icons are also not working.Do you have any suggestion let me know.

1 Answers1

1

This is because you in bucket policy is blocked the other urls. therefore they don't allow to any other url to interfere your bucket objects.And the solution for this question is first you have to do is disable block all public acces in permission picture of after block all public access.After that add this to bucket policy

    {
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "PublicReadGetObject",
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::dtblog/*"
        }
    ]
}

Then you good to go.

Dtheekshana
  • 82
  • 1
  • 10