Files
flyer-crawler.projectium.com/supabase/functions/_shared/cors.ts
Torben Sorensen c0924a16da
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 37s
CORS fixing + nginx change
2025-11-13 12:56:04 -08:00

11 lines
608 B
TypeScript

// This file provides shared CORS headers for Supabase Edge Functions.
// It allows the web application to securely call these backend functions.
export const corsHeaders = {
// Allow requests from your specific frontend domain.
// Using a wildcard '*' is not secure and doesn't work with authenticated requests.
'Access-Control-Allow-Origin': 'https://flyer-crawler.projectium.com',
// Specify which methods are allowed for CORS requests.
'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, OPTIONS',
'Access-Control-Allow-Headers': 'authorization, x-client-info, apikey, content-type',
};