Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "Access-Control-Allow-Origin" for Keycloak client with Access Type 'confidential' #4

Open
LeoPote opened this issue Apr 11, 2020 · 0 comments

Comments

@LeoPote
Copy link

LeoPote commented Apr 11, 2020

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant