The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add one more option for adding header if type is edge function
Joshen Limdb9389c0c4cc
diff --git a/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsx b/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsxindex 51ed49ab03f..796c3d66aad 100644--- a/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsx+++ b/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsx@@ -143,7 +143,7 @@ const HTTPRequestFields = ({side="bottom"overlay={[<Dropdown.Item- key="experimental-token"+ key="add-auth-header"onClick={() =>onAddHeader({id: uuidv4(),@@ -154,7 +154,28 @@ const HTTPRequestFields = ({><div className="space-y-1"><p className="block text-scale-1200">- Add Authorization header with anon key+ Add authorization header with anon key+ </p>+ <p className="text-scale-1000">+ Required if your edge function enforces JWT verification+ </p>+ </div>+ </Dropdown.Item>,+ <Dropdown.Separator />,+ <Dropdown.Item+ key="add-source-header"+ onClick={() =>+ onAddHeader({+ id: uuidv4(),+ name: ' x-supabase-webhook-source',+ value: `database-webhook`,+ })+ }+ >+ <div className="space-y-1">+ <p className="block text-scale-1200">Add custom source header</p>+ <p className="text-scale-1000">+ Useful to verify that the edge function was triggered from this webhook</p></div></Dropdown.Item>,