[keycloak-user] CORS

Kevin Hirschmann khirschmann at huebinet.de
Thu May 12 08:52:31 EDT 2016


Hello,

 

I have a front-end and one back-end application. For the front-end I entered
the web origin: http://localhost:4000. 

Additionally I added a line <enable-cors>true</enable-cors> to the
standalone.xml (wildfly 10 / keycloak 1.9.4.Final)

 

 

The browser console displays:

The 'Access-Control-Allow-Origin' header contains multiple values
'http://localhost:4000, http://localhost:4000', but only one is allowed.
Origin 'http://localhost:4000' is therefore not allowed access.

 

If I remove the line from the client I get:

localhost/:1 XMLHttpRequest cannot load
http://localhost:8080/auth/realms/... /protocol/openid-connect/token. No
'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://localhost:4000' is therefore not allowed access.

 

Has anyone a hint what could cause this?

 

Thx a lot

Kevin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160512/240aa825/attachment.html 


More information about the keycloak-user mailing list