All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 37s
11 lines
608 B
TypeScript
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',
|
|
};
|