[keycloak-user] Enable CORS
Tero Ahonen
Tero.Ahonen at cybercom.com
Tue Nov 10 04:22:48 EST 2015
Hi,
I’m very new to with keycloak, but I think that u always have to define client in the keycloak config. in keycloak.json client is defined in field resource
.t
On 10 Nov 2015, at 11:11 AM, Revanth Ayalasomayajula <revanth at arvindinternet.com<mailto:revanth at arvindinternet.com>> wrote:
Hi,
Thanks for the quick reply. I wanted to know, as i am requesting the login page of keycloak for a particular realm, which client in that realm should i add this web origins to??
Thanks.
On Tue, Nov 10, 2015 at 2:37 PM, Tero Ahonen <Tero.Ahonen at cybercom.com<mailto:Tero.Ahonen at cybercom.com>> wrote:
At least this worked for me, using laters version.
Enable cors in the client by setting enable-cors field to client app's keycloak.json (if u are using one)
"enable-cors": true,
Then from admin console set realm’s client settings Web Origins setting to match your origins.
.t
> On 10 Nov 2015, at 11:01 AM, Revanth Ayalasomayajula <revanth at arvindinternet.com<mailto:revanth at arvindinternet.com>> wrote:
>
> Hi,
>
> I am using keycloak1.5.0 to secure a few of my applications and i want to request the keycloak's Login page from an ajax call. It is currently giving me a CORS error. So i wanted to know how do i enable CORS support or add my URL to allowed set??
>
> Thanks.
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org<mailto:keycloak-user at lists.jboss.org>
> https://lists.jboss.org/mailman/listinfo/keycloak-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20151110/eb1f544c/attachment.html
More information about the keycloak-user
mailing list