Getting 2FA devices with API

Good morning,

I am developing an application securated with Keycloak. The user can configure 2 factor authentication to access their account, this configuration is made in the keycloak console. I need to get the devices registered in order to see it from the application interface.

I can see that the keycloak console, request the device information to the API with a GET call to the endpoint ‘/account/credentials’. But I cannot get the answer from the application interface (browser), because a CORS error is thrown. Is there any way to obtain those devices without getting this error?

Thank you