[keycloak-user] CORS's problem with JavaScript's library
Karol Buler
K.Buler at adbglobal.com
Wed Jun 28 09:09:50 EDT 2017
Hi Everyone,
We have problem with CORS. We are using this lib: https://www.npmjs.com/package/keycloak-auth-utils in our JavaScript application.
When we try to get AccessToken we are getting this message:
Fetch API cannot load http://<keycloak_address>/auth/realms/master/protocol/openid-connect/token. Request header field x-client is not allowed by Access-Control-Allow-Headers in preflight response.
We tried to modify CORS headers in standalone.xml file of Keycloak's server, but we found that CORS headers are hardcoded and added "in air".
Best regards,
Karol Buler
[https://www.adbglobal.com/wp-content/uploads/adb.png]
connecting lives
connecting worlds
More information about the keycloak-user
mailing list