SupabaseS
Supabase3mo ago
4 replies
Jeremy

Having trouble figuring out how to read headers in an edge function request

Has anyone had this happen to them? I'm creating an edge function, and to make sure it only gets called from a cron job, I added a "x-supabase-webhook-source" header (using the "custom source header" option). The header shows up when I test locally, but when I deploy the edge function, the function can no longer see the header. Should I be looking for request headers somewhere other than req.headers?
Screenshot_2025-10-17_094600.png
Screenshot_2025-10-17_094706.png
Was this page helpful?