OKTA Trusted Origin configuration for Ionic capacitor and angular application for Android Device

Hello,
I am working on an Ionic capacitor angular.
When I try to connect to my okta domain in Web mode it is OK and i get an access token.
But whn I try to connect inside the android simulator, i have an error (seen on the system log of my okta domain : [OAuth2 token request - FAILURE : illegal_origin_browser_request
Here is the trusted origins I have tried :
localhost:4200 CORS Redirect
capacitor:// CORS Redirect
https-localhost CORS Redirect
Can you help me ?
Regards

Would it be possible to post the user-agent header being sent during successful/failed requests?

You can find it by either recording it on your side or check system logs(Client > UserAgent > RawUserAgent).

Hello,
the RawUserAgent is Mozilla/5.0 (Linux; Android 15; sdk_gphone64_arm64 Build/AE3A.240806.036; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/135.0.7049.37 Mobile Safari/537.36

Thank you for your help

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