How to Fix 403 Access Denied Errors During CDN Integration
Amazon CloudFront
CloudFront may return 403 Access Denied error if you are using Amazon S3 bucket as the origin of Amazon CloudFront distribution. Here is the solution.
1. Open the Cloudfront settings and update the Default Root Object as index.html
2. Open S3 and upload an empty index.html file as below
3. Make the index.html file public as below
Bunny CDN
1. Go to the Security tab in the CDN settings
2. Locate and disable the “Block Root Path Access” option.