<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;"><div><div>Carlos,</div><div><br></div><div>If you search in the maillist, you will see that there is a bug in keycloak which has to with cors, we are waiting for a fix.</div><div><br></div><div>Regards,</div><div>Henk</div><div><p class="MsoNormal" style="font-size: 11pt; margin: 0cm 0cm 0.0001pt;"><o:p> </o:p></p></div></div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> Carlos Feria <<a href="mailto:carlosthe19916@gmail.com">carlosthe19916@gmail.com</a>><br><span style="font-weight:bold">Date: </span> Monday 20 April 2015 17:19<br><span style="font-weight:bold">To: </span> Henk Laracker <<a href="mailto:henk.laracker@planonsoftware.com">henk.laracker@planonsoftware.com</a>><br><span style="font-weight:bold">Subject: </span> Re: [keycloak-user] Tomcat with 2 application<br></div><div><br></div><div dir="ltr">Hello, i have the same problem as you, could you solve your problem? please tell me hoy you solve your problem with <span style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">No 'Access-Control-Allow-Origin' </span></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-12 11:35 GMT-05:00 Henk Laracker <span dir="ltr"><<a href="mailto:Henk.Laracker@planonsoftware.com" target="_blank">Henk.Laracker@planonsoftware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif"><div>Hi,</div><div><br></div><div>I have a tomcat 7 running with two web applications deployed , called ROOT and web client. I created a realm in keycloak and two applications. Configures tomcat with the correct json files. When I log in in Root it works fine, when I login in web client it works fine. But the following is the case. Both application are not owned by my , so I can not change the code. I login in ROOT, this application connects to web client through a rest call, this restcall results in a redirect to keycloak because I’m not logged in. the result of this is : </div><div>XMLHttpRequest cannot load <a href="https://keycloak-accdev.planoncloud.com/auth/realms/auth/protocol/openid-co" target="_blank">https://keycloak-accdev.planoncloud.com/auth/realms/auth/protocol/openid-co</a>…atorDataService&state=10%2Ff14baad8-c385-4221-b86a-0ac2f0cf8d6a&login=true. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<a href="https://auth-proddev.planoncloud.com" target="_blank">https://auth-proddev.planoncloud.com</a>' is therefore not allowed access.</div>I know that this has something todo with CORS, so I added the settings:<div><br><div><div>"enable-cors" : true,</div><div>"cors-max-age" : 1000,</div><div>"cors-allowed-methods" : "POST, PUT, DELETE, GET”,</div></div></div><div><br></div><div>To the json file. And added the keycloak url to web origin of both apps in the keycloak manager, but still I got the same result. What do I do wrong? Please advice.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Henk </div></font></span></div><br>_______________________________________________<br>
keycloak-user mailing list<br><a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Carlos E. Feria Vila<br></div></div></span></body></html>