init-auth
init-auth copied to clipboard
Error "Access-Control-Allow-Origin" for Keycloak client with Access Type 'confidential'
Hello,
Thank you for your example. I used it in an Angular implementation with Keycloak client.
Anyway, it is working well when Keycloak client has Access Type 'public', but if i swith to Access Type 'confidential', i get the following error in console:
"Access to XMLHttpRequest at 'http://localhost:8083/auth/realms/my-realm/protocol/openid-connect/token' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."
Do you what could be the problem or if there is missing something in the implementation?
Thank you,