Search code examples
dockerdevopsminio

Get the object from minio server without passing extra data into the URL


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?


Solution

  • mc policy set public <alias>/<mybucket>

    this would make the bucket and objects as public.

    Read more here