G'day!
I am having troubles with CORS on the Auth0 where /authrize is being blocked as Auth0 doesnt support OPTIONS method.
I have done everything that is required for this but Auth0 keeps blocking the request and the authentication doesnt work. Is there a way to disabled this using "no-cors"? My app is unusable without auth working.
Everything works on localhost. And yes I have followed https://vercel.com/guides/how-to-enable-cors and implemented this on the app. The issue seems to be on the Auth0 side reject OPTIONS.
mywebsite.com is a made up domain and not my real domain. I am happy to send my domain upon request privately.
Can anyone suggest some here please?
Error: Access to fetch at '/authorize?client_id=<>' (redirected from 'https://www.mywebsite.com/api/auth/login?_rsc=1wtp7') from origin 'https://www.mywebsite.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.