You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I start supabase locally with supabase start and serving the functions supabase functions serve and trying to execute the function I get following error: [Error] SyntaxError: Unexpected end of JSON input
When I inspect my network
Preflight request
POST Request
As one can see in the preflight request are the corsHeaders missing. Why is it not jumping in the respective if-condition?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Basically I'm trying to run edge functions from a astro client.
I created a simple astro component for testing:
I followed the docs to configure CORS and created a hello-world edge function:
When I start supabase locally with
supabase start
and serving the functionssupabase functions serve
and trying to execute the function I get following error:[Error] SyntaxError: Unexpected end of JSON input
When I inspect my network
Preflight request
POST Request
As one can see in the preflight request are the
corsHeaders
missing. Why is it not jumping in the respective if-condition?Beta Was this translation helpful? Give feedback.
All reactions