Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fix(example): methods cors on restful-tasks edge (#20128)

Yoann Fuks20e8a0156362
diff --git a/examples/edge-functions/supabase/functions/restful-tasks/index.ts b/examples/edge-functions/supabase/functions/restful-tasks/index.ts
index 631aa43c3b9..77a5b84fdb0 100644
--- a/examples/edge-functions/supabase/functions/restful-tasks/index.ts
+++ b/examples/edge-functions/supabase/functions/restful-tasks/index.ts
@@ -7,6 +7,7 @@ import { createClient, SupabaseClient } from 'https://esm.sh/@supabase/supabase-
const corsHeaders = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Headers': 'authorization, x-client-info, apikey',
+ 'Access-Control-Allow-Methods': 'POST, GET, OPTIONS, PUT, DELETE',
}
interface Task {