© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•6mo ago•
2 replies
malmazrou1993

PostgREST

I’m using Supabase PostgREST directly from a frontend app and I see that by default CORS is wide open for my project I’d like to restrict it to specific domains only.

Is there a way to configure CORS headers for PostgREST directly in Supabase, or is the only option to route requests through an Edge Function or external reverse proxy (like Nginx / Cloudflare) to enforce stricter CORS rules?

Would love to know the recommended approach here.

Thanks!
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

PostgREST Issues
SupabaseSSupabase / help-and-questions
3mo ago
PostgREST refresh
SupabaseSSupabase / help-and-questions
3mo ago
Configure PostgREST RBAC
SupabaseSSupabase / help-and-questions
2mo ago
Auth and postgrest unhealthy
SupabaseSSupabase / help-and-questions
3mo ago