I'm building app with Ionic 2 & Cordova and using Keycloak for login/signup.
My problem is when exit the application without logging out, and open the
application again, the keycloak sends me to the login page again.
i'll trying add "offline_access" to scope options but get the error
'Access-Control-Allow-Origin'
XMLHttpRequest cannot load
https://my-keycloak-server/auth/realms/app/protocol/openid-connect/token.
No 'Access-Control-Allow-Origin' header is present on the requested
resource. Origin 'http://localhost:8100' is therefore not allowed access.
The response had HTTP status code 400.
My implementation is based on
https://github.com/keycloak/keycloak/tree/master/examples/demo-template/a...
I'm doing something wrong? Another suggestion for this implementation?