mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 06:51:12 -05:00
Add missing CORS headers
Updated edge functions to include traceparent and x-request-id in Access-Control-Allow-Headers for: - supabase/functions/process-selective-approval/cors.ts - supabase/functions/process-selective-rejection/cors.ts This fixes CORS preflight and allows POST requests to reach edge functions.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export const corsHeaders = {
|
||||
'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, traceparent, x-request-id',
|
||||
};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export const corsHeaders = {
|
||||
'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, traceparent, x-request-id',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user