you running supabase on client?
# javascript
b
you running supabase on client?
c
Supabase cloud. It worked when I tested it locally with curl. I have not yet tried using curl to cloud, I'll try that when I'm back just to make sure.
And just to be clear. I'm talking about Edge Functions.
g
I open this issue yesterday that included cors error for function.js. https://github.com/supabase/functions-js/issues/12 I’ve not really looked into the cors part yet.
Looks like some missing steps to use with function.js..... I've reported what got it working for me: https://github.com/supabase/supabase/issues/6267
c
I don't know if this relates to the CORS error, but I just noticed that
await req.json()
won't accept my json input. When I call
await req.text()
(for debugging) it says that the string is empty, but the browser (Chrome) says that it contains a json string.
I have to investigate this more tomorrow. Now it's late in my timezone.