Error:
:3000/profile:1 Access to XMLHttpRequest at ‘https://xxxx.eu.auth0.com/userinfo’ from origin ‘http://localhost:3000’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: Redirect is not allowed for a preflight request.
Hey there @controlling, I wanted to reach out and see if you have third party cookies enabled in Brave (Chromium)? I ask this because you note that it works in Chrome but not another browser. Does it perform as expected in Firefox or Safari? Thanks for working with me as we troubleshoot what may be going on here.
@controlling that is correct. To echo what is stated in our above Cross-Origin Authentication documentation:
Limitations of Cross-Origin Authentication
Because cross-origin authentication is achieved using third-party cookies, disabling third-party cookies will make cross-origin authentication fail.
There are two approaches you can follow to remediate the issue:
Enable a Custom Domain on your tenant and host your web application in a domain that has the same top level domain as your Auth0 custom domain. Example: Host your application at https://northwind.com and set your Auth0 custom domain as https://login.northwind.com . This way the cookies are no longer third-party (because both your Auth0 tenant and your application are using the same top level domain) and thus are not blocked by browsers.