DEV Community

Discussion on: How to Preserve SPA route path in the browser using AWS CloudFront

Collapse
 
roshanraj profile image
Roshan Raj

Hey, i recently was facing the same issue of access denied.

You need to give S3:ListBucket access to CloudFront to avoid the 403 error.

Collapse
 
adham_benhawy profile image
Adham El Banhawy

Hi Roshan. That's interesting, I tried to change my S3 bucket policy to give CloudFront S3:ListBucket access as well as S3:GetObject (also tried just S3:ListBucket on its own). I was still greeted with 403 error afterwards. Maybe you had a different setup or S3 access pattern.