Browse Source

fix: add DELETE to CORS allowed methods in API Edge Function #28

Claude 5 months ago
parent
commit
6117576359
1 changed files with 1 additions and 0 deletions
  1. 1 0
      supabase/functions/api/index.ts

+ 1 - 0
supabase/functions/api/index.ts

@@ -4,6 +4,7 @@ import { createClient } from 'https://esm.sh/@supabase/supabase-js@2'
 const corsHeaders = {
   'Access-Control-Allow-Origin': '*',
   'Access-Control-Allow-Headers': 'authorization, x-client-info, apikey, content-type',
+  'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, OPTIONS',
 }
 
 serve(async (req) => {