Login Issue: CORS Policy & Preflight Redirect Error on auth.supabase.io #49817
Replies: 2 comments 8 replies
|
Same issue here! |
Root CauseUnder the W3C / Fetch CORS specification, HTTP redirects (301, 302, 307, 308) are strictly forbidden on CORS When signing into
Step-by-Step Fixes1. Pass the Edge Challenge DirectlyOpen a new browser tab and navigate directly to: If you are greeted by a Cloudflare "Verify you are human" Turnstile challenge, solve it once. This writes the necessary 2. Test in Clean Incognito / Disable Content Blockers
3. Switch IP / Network
4. Workaround: Use OAuth SSO or Magic LinkPassword login relies on an in-page cross-origin
|
Uh oh!
There was an error while loading. Please reload this page.
Hi Supabase Team,
I am currently unable to sign in to my account via the Supabase dashboard. The UI is displaying a "Failed to fetch (auth.supabase.io)" error message.
Upon inspecting the console, I found that the authentication request is being blocked due to a CORS policy violation related to a preflight redirect.
Here are the specific logs:
Access to fetch at 'https://auth.supabase.io/auth/v1/token?grant_type=password' from origin 'https://supabase.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
POST https://auth.supabase.io/auth/v1/token?grant_type=password net::ERR_FAILED
Failed to load resource: the server responded with a status of 401 ()
I have attached a screenshot of the login screen error for your reference. Could you please check if there is an ongoing routing issue, outage, or misconfiguration with the auth API endpoints?
Looking forward to your prompt response.
Best regards,

Rawan
All reactions