<div dir="ltr">I mean ng-flow<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 24, 2015 at 9:37 AM, Juan Diego <span dir="ltr"><<a href="mailto:juandiego83@gmail.com" target="_blank">juandiego83@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks, Marek, apparently is not something Keycloak related, ng-flow doesnt use $http to upload the file so I have to add the headers manually into keycloak.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 24, 2015 at 2:41 AM, Marek Posolda <span dir="ltr"><<a href="mailto:mposolda@redhat.com" target="_blank">mposolda@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>You may need to configure web origins
in the configuration of your client in Keycloak admin console. For
example if your javascript application is running on
<a href="http://myserver.org:8080/myapp" target="_blank">"http://myserver.org:8080/myapp"</a> you need to add origin like
<a href="http://myserver.org:8080" target="_blank">"http://myserver.org:8080"</a> . See docs for the details:
<a href="http://keycloak.github.io/docs/userguide/html/cors.html" target="_blank">http://keycloak.github.io/docs/userguide/html/cors.html</a><br>
<br>
Marek<div><div><br>
<br>
On 19.6.2015 20:31, Juan Diego wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div>
<div dir="ltr">
<div>
<div>
<div>Hi<br>
<br>
</div>
I have an upload servlet <a href="https://gist.github.com/jdc18/c6c8689e269e655581cb" target="_blank">https://gist.github.com/jdc18/c6c8689e269e655581cb</a>,
I tested before without keycloak and it worked. But when I
activate keycloak I get " No 'Access-Control-Allow-Origin'
header is present on the requested resource.", my rest
services do work with CORS. I have my page with angular and
my backend with java.<br>
<br>
</div>
My backend is similar to the database service example.<br>
<br>
<br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
keycloak-user mailing list
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br>
</div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>