Supabase storage rescue

Supabase storage uploads and downloads fail in production

Supabase storage works in development but fails in production when bucket policies, CORS settings, or storage URLs are not configured correctly.

What is probably broken

File uploads and downloads work locally but fail in production with permission errors or CORS blocks.

What production should look like

Supabase storage working correctly with proper policies, CORS, and URL configuration.

STEP 01

Check bucket policies

Storage buckets need policies to allow uploads and downloads.

  • Verify the bucket exists in the Supabase dashboard.
  • Check that the bucket has a public or authenticated policy depending on your needs.
  • Test uploads and downloads in the Supabase SQL editor.

STEP 02

Configure CORS for your domain

Browser requests to Supabase storage need CORS headers.

  • Add your production domain to the Supabase storage CORS allowlist.
  • Test uploads from the production domain in the browser.
  • Verify the response includes the correct Access-Control headers.

STEP 03

Update the app and test

Ensure the app uses the correct storage URL and keys.

  • Confirm the app uses the production Supabase URL for storage calls.
  • Test upload, download, and delete operations from the production app.
  • Verify file URLs are accessible from the production domain.

Quick check

Is your app production-ready?

If you cannot tick all five, we can fix it. Send us the repo and we handle the rest.

  • ?Custom domain with HTTPS
  • ?Environment variables configured
  • ?Database wired and backed up
  • ?Auto-deploy on push
  • ?Smoke tested and live

Free checklist

Deploying this yourself?

Get the exact 5-step checklist we run before every deploy. No fluff, just the things that actually break.

No spam. Your email is only used to send the checklist.

Done-for-you deploy

RepoAssistant configures Supabase storage with correct policies and CORS during production deployment.

Fixed price per repo. 24h delivery or full refund. No hourly billing.

Deploy my app

Related guides