Explorar el Código

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

Claude hace 5 meses
padre
commit
6117576359
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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 = {
 const corsHeaders = {
   'Access-Control-Allow-Origin': '*',
   'Access-Control-Allow-Origin': '*',
   'Access-Control-Allow-Headers': 'authorization, x-client-info, apikey, content-type',
   'Access-Control-Allow-Headers': 'authorization, x-client-info, apikey, content-type',
+  'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, OPTIONS',
 }
 }
 
 
 serve(async (req) => {
 serve(async (req) => {