Skip to content

HTTP PATCH - Unauthorized Error #37

Closed Answered by TizianoT
drveresh asked this question in Bug Report
Discussion options

You must be logged in to vote

@drveresh
Authorization
When creating an edge function, you have the option to assign an API key to it.

If an API key is assigned, any calls to the edge function will automatically authenticate access to the associated database using that API key.

If you choose not to assign an API key, you will need to provide it when invoking the edge function. The API key can be included in the request as a query parameter named "apikey" or within the body.

For more information, you can refer to this discussion about securing edge functions with an API key.

Executing
When executing an edge function, you should use either the GET or POST methods, depending on whether you need to include a request body.

T…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Gioee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants