[keycloak-user] How to test CORS functionality

Henk Laracker Henk.Laracker at planonsoftware.com
Tue Apr 14 10:38:23 EDT 2015


Hi,

I like to be sure if CORS works as expected, I switch back to version 1.1 of keycloak configured a realm (planon) and a application (ROOT). With a web origin “www.example.com”
The keycloak application runs on the open shift cloud : https://keycloakmaster-ciwwa.rhcloud.com/auth/

What is the best way to test if CORS is working?  If found the web site http://test-cors.org filled in the follwong url

https://keycloakmaster-ciwwa.rhcloud.com/auth/realms/planon/protocol/openid-connect/auth?response_type=code&client_id=ROOT

But this does not give me the expected result, does this mean that I found a bug? I expected to see

CORS Response

Set-Cookie: cookie-from-server=noop
Content-Length: 0
Content-Type: application/json
Access-Control-Allow-Origin: www.example.com
Cache-Control: no-cache

Please Help,

Henk



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


More information about the keycloak-user mailing list