I have angular app.
When I set the access type to confidential I get CORS errors in the browser and no ‘Access-Control-Allow-Origin’ header is present.
When switching to public I get no CORS Problem and I can see the ‘Access-Control-Allow-Origin’ headers.
I see that it does not make much sense to set the access to confidation using a angular app where the secret can bee seen in the browser.
Still I am wondering if my observation are correct and that they make sense.
Did you find a solution for this issue? Apparently the solution “with correctly configured Web origins configuration (that’s not a ‘*’) => no CORS error” doesn’t work for me.
I am using now this solution for Angular implementation.
Hey guys, just to bump the thread.
I am having the same issue and switching to public is not really an option.
The issue of switching to Public is that Authorization tab (features) are no longer present.
And for our project we are using these features (resources, scopes, permissions etc…)
Now from what I see in PRs:
and majority of the posts I find advise switching to public to ‘solve the issue’, again, this causes us to lose out on a feature as it gets disabled.
Basically all I need is a way to use keycloak from angular with Access Type set to confidential (because that is the only way to see / use authorization tab)
Again, our issue was not how the secret was handled but that by switching to ‘public’ we lost out on the Authorization keycloak features - resource, scope, policy and permission management.
But with this rollback, it seems to work. Something to consider if you need Authorization features (thus ‘confidential’ enabled)