© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago•
13 replies
Emil

403 when invoking sb edge function from vercel function

Hi,
I am build a vercel function to redirect users. The final url is beeing processed based on data from a supabase table. In order to access that table, i wrote a simple edge function on supabase which basically takes an id and returns a "matching" string.

The problem is that, when invoking this function from the vercel function, i get an 403 from supabase. When i invoke the function in my frontend though (where I am a logged in user), it works.

I've already tried calling it with anon and service role keys and set the verify_jwt to false, but it still doesn't work.

Any ideas on how to solve this? This is how i invoke, the client is build with the anon key from my supabase:

const { data, error } = await supabase.functions.invoke(
    "admin/getCustomerUrlFromIdent",
    {
        body: { ident: deviceIdent },
    }
);
const { data, error } = await supabase.functions.invoke(
    "admin/getCustomerUrlFromIdent",
    {
        body: { ident: deviceIdent },
    }
);


Thanks in advance!
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Invoking Edge Function from Browser
SupabaseSSupabase / help-and-questions
4y ago
Webhook not invoking Edge Function
SupabaseSSupabase / help-and-questions
3y ago
Invoking an edge function via Supabase trigger/function
SupabaseSSupabase / help-and-questions
3y ago
Invoking a local edge function from local SQL editor
SupabaseSSupabase / help-and-questions
4y ago