I’m building a React.js hybrid app with the Okta login react widget. I’m wrapping the React.js SPA with Cordova.
It’s working fine in a desktop browser but when I deploy to an iOS device I get the following error when attempting to login:
2018-02-23 11:17:26.749707-0800 PartnerTap[4897:2583852] login error: UNSUPPORTED_BROWSER_ERROR: There was an error sending the request - have you enabled CORS?
I don’t have any issue hitting out own REST api from the app. Any ideas?
I will add some more debugging to see why the browser check is failing.
Will Cordova or Ionics origin: file:// ever be supported by Okta? I would really like to use the okta-signin-widget for all platforms rather than redirecting using the in-app browser.
@whodeee I’m not aware of any changes to the Okta platform that allows the use of their widget in Cordova apps, which is unfortunate. I used the dirty in-app browser hack to handle retrieving the tokens after login.
@jarbot can you expand on that a bit? I am trying to work through the in-app browser and I think I am running into redirectUri issues. Can you post what your solution was at all?