Open 3rd party whitelisted URLs in app, without in-app-browser plugin

We’re currently using the web authentication auf auth0. Since the login screen is served from auth0’s domain, currently login screen opens in the phone’s browser, not within the ionic app itself.

Is there a way to whitelist auth0’s login URLs so that those pages are loaded inside the app, without the overhead of using an in-app-browser plugin (which comes with its own complexity)?

For reference, I found out that we have to modify capacitor.config.json as following:

{
  ...
  "server": {
    ...
    "allowNavigation": ["*.auth0.com"]
    ...
  },
  ...
}

Obviously adopt the allowed URLs to your needs.

1 Like

I tried this configuration but still not working on my side,
It still return CORS error when accessing API through local network on build version.

Are there any way to access local server?

Im using axios to connect with API’s
This is the build version of the app, trying to connect on my API using axios