- {headerFields.map((field, index) => (
-
- (
-
-
-
- )}
- />
- (
-
-
-
- )}
- />
- }
- className="py-4"
- onClick={() => removeHeader(index)}
- tooltip={{ content: { side: 'bottom', text: 'Remove header' } }}
- />
-
- ))}
-
-
}
- className={cn(functionType === 'supabase_function' && 'rounded-r-none px-3')}
- onClick={() => onAddHeaders()}
- >
- Add a new header
-
- {functionType === 'supabase_function' && (
-
-
- }
- className="rounded-l-none px-[4px] py-[5px]"
- />
-
-
- {
- onAddHeaders([
- {
- id: uuidv4(),
- name: 'Authorization',
- value: `Bearer ${apiKey}`,
- },
- ...(serviceKey?.type === 'secret'
- ? [{ id: uuidv4(), name: 'apikey', value: apiKey }]
- : []),
- ])
- }}
- >
-
-
Add auth header with secret key
-
- Required if your edge function enforces JWT verification
-
-
-
-
-
- onAddHeaders([
- {
- id: uuidv4(),
- name: 'x-supabase-webhook-source',
- value: `[Use a secret value]`,
- },
- ])
- }
- >
-
-
Add custom source header
-
- Useful to verify that the edge function was triggered from this webhook
-
-
-
-
-
- )}
-
-
+