[keycloak-user] passing tokens to a servlet with cors

Juan Diego juandiego83 at gmail.com
Wed Jun 24 10:37:26 EDT 2015


I mean ng-flow

On Wed, Jun 24, 2015 at 9:37 AM, Juan Diego <juandiego83 at gmail.com> wrote:

> 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.
>
> On Wed, Jun 24, 2015 at 2:41 AM, Marek Posolda <mposolda at redhat.com>
> wrote:
>
>>  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 "http://myserver.org:8080/myapp"
>> <http://myserver.org:8080/myapp> you need to add origin like
>> "http://myserver.org:8080" <http://myserver.org:8080> . See docs for the
>> details: http://keycloak.github.io/docs/userguide/html/cors.html
>>
>> Marek
>>
>>
>> On 19.6.2015 20:31, Juan Diego wrote:
>>
>>   Hi
>>
>>  I have an upload servlet
>> https://gist.github.com/jdc18/c6c8689e269e655581cb, 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.
>>
>>  My backend is similar to the database service example.
>>
>>
>>
>>
>> _______________________________________________
>> keycloak-user mailing listkeycloak-user at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/keycloak-user
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20150624/f4622244/attachment.html 


More information about the keycloak-user mailing list