2023-02-16

Loading project file on AWS S3 giving error 403: Forbidden

I have uploaded to AWS basic app where I am loading few assets. For some reason these models are throwing this error:

Error: fetch for “https:…/model1.glb” responded with 403: Forbidden

I have uploaded few test apps to AWS before without any issues. Bucket policy is setup and permissions are all public.

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

Edit: the app was built with Vite and I am hosting dist folder



No comments:

Post a Comment