Disregard - of course, I looked at it closer after posting and I realized I 
was setting it wrong at the individual $http level.  It actually does 
override the defaults.   



On Wednesday, January 29, 2014 9:58:12 PM UTC-5, Ed wrote:
>
> I have an application that involves making XHR requests to many different 
> REST services which I call via $http or $resource.   Nearly all of these 
> are authenticated, so as a convenience,  I set my 
> $httpProvider.defaults.withCredentials to true so I don't need to do that 
> individually for each factory/service.
>
> One or two of these services are not authenticated, so I tried to override 
> this by setting withCredentials to false at the individual $http/$resource 
> config but it seems the $httpProvider.defaults settings takes precedence 
> and can't be overriden.  Can someone confirm if this is the case?   I know 
> the request is being sent with credentials because one of the 
> non-authenticated service's CORS config is set with a wildcard and I get a 
> "Cannot 
> use wildcard *i*n Access-Control-Allow-Origin when credentials flag is 
> true"  error unless I change my defaults to not send credentials.
>

-- 
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/groups/opt_out.

Reply via email to