I created an S3 bucket with a subfolder containing several images that I want to use in my app. Right now, all public access is blocked (the default settings) so if I try to access the AWS-generated Object URL for an image, I get an Access Denied error.
I want to be able to use the images in an app (ex. myapp.mysite.com) but right now, if I use the URL as the
src value of an
img tag, it won’t work. At the same time, I don’t want my
images buckets to be visible and accessible to everyone. Is there a way to restrict access to files inside a bucket to a sub/domain?