© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
1 reply
DFB

CORS Error (React Starter + Vite)

Hi guys. I'm trying to connect to my new Supabase database using the React starter. The only thing I've done differently vs the tutorial is that I have used Vite as opposed to Create React App.

Unfortunately I keep getting the following error when I try to send myself the magic email link:
NetworkError when attempting to fetch resource.
NetworkError when attempting to fetch resource.


I'm seeing the following error in my console:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://sxcditvzeglxgoadnebp.supabase.com/auth/v1/otp. (Reason: CORS request did not succeed). Status code: (null).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://sxcditvzeglxgoadnebp.supabase.com/auth/v1/otp. (Reason: CORS request did not succeed). Status code: (null).


Looking at the network tab I can see that the Options and post requests are failing. I'm at a loss here, any idea how I should start tackling this?
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

Vite React Reload Issue
SupabaseSSupabase / help-and-questions
2d ago
React/Vite database integration....
SupabaseSSupabase / help-and-questions
5mo ago
CORS
SupabaseSSupabase / help-and-questions
7mo ago
SvelteKit (Vite) + Supabase Error on from()
SupabaseSSupabase / help-and-questions
4y ago