© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
3 replies
Kai Pradel

CORS issues when invoking functions via browser

I am following the examples at https://supabase.com/docs/guides/functions#cors-cross-origin-resource-sharing to try to make a simple function invocation from the browser. However, I get CORS errors despite passing in the correct headers. The out-of-the-box example found here https://github.com/supabase/examples/blob/main/supabase-js-v1/edge-functions/supabase/functions/browser-with-cors/index.ts just does not work.

Any help would be much appreciated.
KP
GitHub
examples/index.ts at main · supabase/examples
Supabase examples to help you get started. Contribute to supabase/examples development by creating an account on GitHub.
examples/index.ts at main · supabase/examples
Edge Functions | Supabase
Globally distributed TypeScript functions.
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

Invoking Edge Function from Browser
SupabaseSSupabase / help-and-questions
4y ago
Edge functions cors problem
SupabaseSSupabase / help-and-questions
4y ago
I'm having CORS issues when upgrading functions to use Supabase v2.0.0
SupabaseSSupabase / help-and-questions
4y ago
Invoking an edge function via Supabase trigger/function
SupabaseSSupabase / help-and-questions
3y ago