Hi,
after huge amounts of hours of investigations I found the resolution for almost all
problems with CORS. I decided that maybe I am not alone with it, so here you go:
1. Go to admin console of Keycloak and set 'Web Origins' of your client to address
of your application (or just * ).
2. In your application.properties (keycloak.json) set keycloak.cors = true (don't know
the name of this property in keycloak.json).
3. Thats it! Only 2 steps resolves almost all my problems with CORS in our applications.
Best regards,
Karol
[
https://www.adbglobal.com/wp-content/uploads/adb.png]
adbglobal.com<https://www.adbglobal.com>
[
https://www.adbglobal.com/wp-content/uploads/linkedin_logo.png]<https:...
[
https://www.adbglobal.com/wp-content/uploads/twitter_logo.png]
<
https://twitter.com/adb_global>
[
https://www.adbglobal.com/wp-content/uploads/pinterest_logo.png]
<
https://pinterest.com/adbglobal/pins/>
[
https://www.adbglobal.com/wp-content/uploads/ComeJoin.jpg]<https://www...