Edge Function Always Returns 401 Unauthorized Despite "auth": false Config and Latest CLI
#35118
Unanswered
TransmissionFromNaat
asked this question in
Questions
Replies: 2 comments 3 replies
-
|
Can you link where you are seeing docs on use a config.json file? https://supabase.com/docs/guides/functions/development-tips#using-configtoml |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Do you have this toggled on in your edge function settings? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Project Ref:
srfjvqllvkfmxweocmeqIssue:
My Edge Function always returns a
401 Unauthorizederror ({"code":401,"message":"Missing authorization header"}) even though I have set up the function to be public with the recommended configuration.Details
Function Names Tried:
stripe-webhook,stripe-webhook2Config File:
The file
supabase.functions.config.jsonis present in the function directory and contains:{ "auth": false }Supabase CLI Version:
2.20.12(latest, installed via Homebrew)Deploy Commands Used:
Function Directory Structure:
The config file,
index.ts, anddeno.jsonare all in the same directory.Tested Endpoints:
https://srfjvqllvkfmxweocmeq.supabase.co/functions/v1/stripe-webhookhttps://srfjvqllvkfmxweocmeq.supabase.co/functions/v1/stripe-webhook2Test Command:
Result:
Always returns:
What I’ve Tried:
.gitignoreor.npmignoreexcluding the config fileThis is blocking Stripe webhooks and any public access to the function.
What can I do to solve this issue?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions