This should be an issue w/ your server and not your front-end app. Do you 
have a CORS-enabled middleware set up?

On Sunday, June 28, 2015 at 7:35:16 AM UTC-7, K Khan wrote:
>
> Hi,
>
> I have a Laravel and AngularJS app, when i try to make a $http request to 
> a specific route which redirects to a different page (openId login). I get 
> the following error:
>
> XMLHttpRequest cannot load [The Url] No 'Access-Control-Allow-Origin' header 
> is present on the requested resource. Origin 'http://localhost:8000' is 
> therefore not allowed access.```
>
>
> Can someone help me try and fix this?
>
> I have added this to my server but i still get the issue when requesting 
> the openid url page. When i look at the network tab no access controls are 
> associated with the openid url page only the initial /login route/page
>
> header("Access-Control-Allow-Origin: *");
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to