Keycloak Access-Control-Allow-Origin

时间:2017-07-11 09:20:15

标签: angularjs keycloak

我已经将keycloak与我的angularJS应用程序集成在一起。在登录页面后运行应用程序时,浏览器控制台显示。

XMLHttpRequest cannot load http://192.168.1.7:8080/auth/realms/app1/protocol/openid-connect/token. Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values '*, http://192.168.1.7:8000', but only one is allowed. Origin 'http://192.168.1.7:8000' is therefore not allowed access.

1 个答案:

答案 0 :(得分:1)

您需要在KC Web控制台中为您的客户端设置Web Origins属性。