[keycloak-user] No 'Access-Control-Allow-Origin' header is present on the requested resource

JAYAPRIYA ATHEESAN jayapriya.atheesan at gmail.com
Mon Apr 18 06:54:20 EDT 2016


Yes.

I have added the same in the admin console.

 



 

But still I get forbidden exception.

 

 

 

Thanks,

Jayapriya Atheesan

 

 

-----Original Message-----
From: Marek Posolda [mailto:mposolda at redhat.com] 
Sent: Monday, April 18, 2016 3:59 PM
To: JAYAPRIYA ATHEESAN; keycloak-user at lists.jboss.org
Subject: Re: [keycloak-user] No 'Access-Control-Allow-Origin' header is
present on the requested resource

 

You may need to configure "Web origins" for your client in Keycloak admin
console and add the origin where client is running. It seems that for you
it's origin " <http://localhost:60> http://localhost:60" .

 

Marek

 

On 18/04/16 10:19, JAYAPRIYA ATHEESAN wrote:

> Hi All,

> 

> I need a help.

> 

> I tried to use the example provided by keycloak team for
broker(facebook-identity-provider-realm).

> 

> But when I try to load the social profile, I get the following exception.

> 

> angular.js:8098 OPTIONS 

>  <https://host_name:8444/auth/realms/facebook-identity-provider-realm/br>
https://host_name:8444/auth/realms/facebook-identity-provider-realm/br

> oker/facebook/token (anonymous function) @ angular.js:8098sendReq @ 

> angular.js:7902serverRequest @ angular.js:7636wrappedCallback @ 

> angular.js:11050wrappedCallback @ angular.js:11050(anonymous function) 

> @ angular.js:11136Scope.$eval @ angular.js:12062Scope.$digest @ 

> angular.js:11888Scope.$apply @ angular.js:12168(anonymous function) @ 

> angular.js:18102(anonymous function) @ angular.js:2643forEach @ 

> angular.js:328eventHandler @ angular.js:2642

> :60/fb/:1 XMLHttpRequest cannot load
<https://host_name:8444/auth/realms/facebook-identity-provider-realm/broker/
facebook/token>
https://host_name:8444/auth/realms/facebook-identity-provider-realm/broker/f
acebook/token. Response to preflight request doesn't pass access control
check: No 'Access-Control-Allow-Origin' header is present on the requested
resource. Origin 'http://localhost:60' is therefore not allowed access. The
response had HTTP status code 404.

> 

> I face similar kind of exception when I tried to load profile detail from
keycloak too..

> 

> Please help me in resolving the same.

> 

> I have hosted the angular js application in my local host.

> The keycloak is running on a server. External request is set to none for
testing purposes.

> 

> Thanks,

> Jayapriya Atheesan

> 

> 

> 

> 

> _______________________________________________

> keycloak-user mailing list

>  <mailto:keycloak-user at lists.jboss.org> keycloak-user at lists.jboss.org

>  <https://lists.jboss.org/mailman/listinfo/keycloak-user>
https://lists.jboss.org/mailman/listinfo/keycloak-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160418/60992d33/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 3453 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/keycloak-user/attachments/20160418/60992d33/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 8593 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/keycloak-user/attachments/20160418/60992d33/attachment-0003.png 


More information about the keycloak-user mailing list