adrfinance - I am making an API call from Build...
I am making an API call from Buildship to Supabase. In one case, I have RLS disabled and it works. In the other case, I enable RLS and use the service key and it returns nothing. Why is this happening? Isn't the service key supposed to bypass RLS?
1 Reply
You'll require to make setup the custom policy which gives access to your database, https://supabase.com/docs/guides/api/securing-your-api?queryGroups=database-method&database-method=dashboard#enabling-row-level-security you can refer to this create custom rls policy
Securing your API | Supabase Docs
Securing your Data API with Postgres Row Level Security.