Call account rest API from another application

Hello,

Im trying to reach the endpoints of this keycloak/services/src/main/java/org/keycloak/services/resources/account/AccountRestService.java at main · keycloak/keycloak · GitHub

I see that the account console is calling ‘/credentials’ endpoint with success, it gives the list of user credentials

But when I try to call this endpoint from another application (mine, in localhost), I end up with Cors issues…

I already tried to setup correctly web origins but I still having those cors issues

Anyone already got success with this?

What Im doing currently : I extended the server with the endpoints I need and I call the methods defined in this class keycloak/services/src/main/java/org/keycloak/services/resources/account/AccountCredentialResource.java at main · keycloak/keycloak · GitHub

But Im not confortable with this solution

Thanks