diff --git a/supabase/functions/upload-file/index.ts b/supabase/functions/upload-file/index.ts index 1a94f1d..1a4b11d 100644 --- a/supabase/functions/upload-file/index.ts +++ b/supabase/functions/upload-file/index.ts @@ -6,7 +6,8 @@ import { supabase, getUserProfile } from "../_shared/supabase.ts"; const corsHeaders = { 'Access-Control-Allow-Origin': '*', - 'Access-Control-Allow-Headers': 'authorization, x-client-info, apikey', + 'Access-Control-Allow-Methods': 'PUT', + 'Access-Control-Allow-Headers': 'authorization, x-client-info', } const json = (data: T, options?: { status: number }) => new Response(