© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
38 replies
A Tate

CORS + Auth Header Error: Supabase Edge Function from Lovable Frontend

Hey everyone, I'm connecting my Supabase Edge Function to Lovable (a no-code frontend).

The function returns 200 OK inside Supabase, but my frontend hits CORS preflight errors (400/500) and shows "Missing authorization header" inside the console. It looks like my CORS or authentication configuration might not be handling the Lovable domain correctly. What's the best way to validate or adjust that setup so my frontend can fetch data from the question table?

Looking for guidance on validating CORS configuration and auth headers so Lovable can fetch from 'public.questions'.

Any help appreciated!
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Supabase edge function failed for every chat in lovable
SupabaseSSupabase / help-and-questions
5mo ago
auth edge function
SupabaseSSupabase / help-and-questions
2w ago
SupaBase & Lovable
SupabaseSSupabase / help-and-questions
14mo ago
42P01 error from edge function
SupabaseSSupabase / help-and-questions
4mo ago