pmanning
BBuildShip
•Created by Sleetza on 4/10/2024 in #❓・buildship-help
How to run RLS with Supabase?
The issue is that your node code is only sending the apikey header and not the Authorization header. Supabase expects the service_role key to be passed as a Bearer token in the Authorization header so that it can bypass RLS. In BuildShip enter the Nod Logic of the node in question and update the hears section to read const headers = {
apikey: apiKey,
// Next line has been added so Supabase RLS will be bypassed when a service_role key is used
Authorization:
Bearer ${apiKey}
,
"Content-Type": "application/json",
Prefer: "return=representation",
};16 replies