[keycloak-user] XMLHttpRequest cannot load https://keycloak-dcdevelopment.rhcloud.com/
Stian Thorgersen
sthorger at redhat.com
Fri Dec 4 07:46:10 EST 2015
It helps if you add more details when you ask questions. I assume you are
trying to get keycloak.js to work as you're dealing with CORS. To get that
to work you need to create a client in Keycloak then set the following
values:
* Access type: public
* Valid Redirect URIs - the URL of your application (if it's
http://localhost:8080/myapp/index.html you can set it to
http://localhost:8080/myapp/*)
* Web Origins - once you've clicked save this field pops up, make sure it
has the origin of your application (this is what enables cors requests, if
you don't know what that is google it). The origin is url schema, hostname
and port bit, without context path (so http://localhost:8080 for example)
On 4 December 2015 at 13:38, Stian Thorgersen <sthorger at redhat.com> wrote:
> Did you add origins to your client?
>
> On 4 December 2015 at 05:51, Sajjad Murtaza <sajjadmurtaza.nxb at gmail.com>
> wrote:
>
>> Am facing following error
>>
>> XMLHttpRequest cannot load
>> https://keycloak-dcdevelopment.rhcloud.com/auth/realms/demo/protocol/openid-connect/token.
>> No 'Access-Control-Allow-Origin' header is present on the requested
>> resource. Origin 'http://localhost:8080' is therefore not allowed access.
>>
>>
>> I'm trying to authenticate with keycloak.
>>
>> _______________________________________________
>> keycloak-user mailing list
>> 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/20151204/1ca7426c/attachment.html
More information about the keycloak-user
mailing list