SupabaseS
Supabase4y ago
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.

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).

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?
Was this page helpful?