CORS issue with native app using ionic from serve from localhost:8100

Hello

I created a native app with the settings as described from the Quick start guide, please see screenshots for the settings:


Yet I keep hitting this roadblock.

Access to XMLHttpRequest at ‘https:// mytenant.auth0.com/oauth/token’ from origin ‘http:// localhost:8100’ has been blocked by CORS policy: Request header field x-xsrf-token is not allowed by Access-Control-Allow-Headers in preflight response.

Would appreciate if anyone can say what I’m missing.

Thanks.

Hi there @davidang and welcome to the Auth0 Community!

Can you share what quickstart guide you are building from along with the Ionic version you are using? If you could please send me the tenant name i would appreciate it as we dig more into what may be going on here. Thanks!

Thanks James, I will DM you since it contains company information.

Thanks, I’ll give this a look today!

@James.Morrison

It started to work over the weekend. If I end up encountering the CORS issue again, I would let you know.

Sounds great, have a happy holiday!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.