Platform
Supabase fixes
Login sends people to localhost, empty lists, refused saves, and API keys.
17 fixes, most common first.
- Rank 9. Supabase Edge Function CORS error: Response to preflight request doesn't pass access control check
Calling a Supabase Edge Function from the browser fails with a CORS/preflight error? Handle OPTIONS and return corsHeaders on every response.
- Rank 16. Supabase confirmation or password reset email not arriving
Users never get the Supabase confirm or reset email? Check the rate limit, set up custom SMTP and fix the link's Site URL.
- Rank 18. infinite recursion detected in policy for relation
Supabase error 42P17 "infinite recursion detected in policy for relation"? Two RLS policies check each other. Break the loop with a function.
- Rank 19. permission denied for table (Supabase error 42501)
Supabase "permission denied for table"? The role lacks a GRANT on the table, which is checked before RLS. Add the grant, then a policy.
- Rank 20. Supabase Storage upload fails: new row violates row-level security policy
Image/file upload to Supabase Storage fails with an RLS error? Add policies on storage.objects for INSERT (plus SELECT/UPDATE for upsert).
- Rank 40. Supabase error: Email address not authorized
Sign-up tells the user Email address not authorized? The built-in mailer only sends to your Supabase organization. Custom SMTP sends to everyone else.
Can't fix it? Get help.
If the steps didn't clear the error, send what the screen says. A person can take a look. This is a request for a paid fix, not an instant chat.