Supabase Storage: 403 when downloading a private file
The file exists in a buget, but the public address Storage returns the refusal to access. A private Bucket requires certified access or signed URL, and Storage policy may further restrict operations.
How to determine the source of the error
Verify the public/private setting of the bucket and the role of the downloader.
Check the policies on storage.objects, folder path and assign the owner.
What to do step by step
1. For private files, generate signed URL with limited life time on a trusted server or download by authorized SDK.
2 . Transfer to URL only the path to the authorized file and check permissions before generating signatures.
How to check the score
The authorized user downloads the file, the unaccessed person gets a refusal, and the URL expires as set.
What to do
Do not switch the entire customer's bucket to the public just to make the image visible.