docs icon indicating copy to clipboard operation
docs copied to clipboard

update Supabase docs

Open bdon opened this issue 1 year ago • 0 comments

@thorwebdev I am wondering if this actually works:

const ALLOWED_ORIGINS = ["http://localhost:3000"];
const corsHeaders = {
  "Access-Control-Allow-Origin": ALLOWED_ORIGINS.join(","),
};
...
return new Response("ok", { headers: corsHeaders });

From what I can tell if you specify 2 or more ALLOWED_ORIGINS then it will return a comma-separated list in the ACAO header, which is usually not accepted by browsers? have you tested that case?

bdon avatar Jun 29 '24 21:06 bdon