I'm working on an app and I upload photos to the minio server. I want to access them from the frontend and I cannot simply write a location of the object in the url because it returns an XML response that says "Access denied.", so I have to pass the access key as a url query as well as it's expiration. Is there a way of enabling public access for every object in a bucket?
Asked
Active
Viewed 855 times
1 Answers
1
mc policy set public <alias>/<mybucket>
this would make the bucket and objects as public.

Prakash S
- 1,695
- 3
- 11
- 20
-
I'm not sure what alias stands for. – Jakub Klimek Oct 12 '21 at 16:44
-
https://github.com/prakashsvmx/minio-js-web-browser-example. Try this – Prakash S Oct 13 '21 at 01:34
-
I actually have my own API so I wrote this functionality in go – Jakub Klimek Oct 13 '21 at 10:00
-
Okay so I actually had to create a new alias. Now it works – Jakub Klimek Oct 13 '21 at 10:13