-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Feature Request: Ability to pass withCredentials with $resource #1095
Comments
Does setting: $http.defaults.withCredentials = true; address this? |
No. I tried on v1.0 and looking through the code it doesn't appear to be supported as a default either. var module = angular.module('test', ['ngResource']);
module.config(function($httpProvider) {
$httpProvider.defaults.withCredentials = true;
}); |
This is a work around, but will set all resources to use the default. I would like to use some resources with credentials and some without. Need to expose the http config object or withCredentials from the resource. |
Agreed. |
Would anyone mind providing an example or link to how this is used now? |
Here is what I am doing currently, but does not seem to be working: http://pastie.org/private/0360dfcyrlfwykoeklmaa |
@calvinfroedge Looks like this hasnt made it into a stable release yet - it's not in 1.0.5. https://github.com/angular/angular.js/blob/v1.0.x/src/ng/http.js I'm guessing it's slated for 1.1.x. |
Im using 1.1.4 and see the withCredentials in the source. |
$http now accepts CORS withCredentials, but $resource doesn't make this value available to be set.
Can Haz access to withCredentials or $http.config from $resource?
Without this I am getting a query canceled error in Chrome.
The text was updated successfully, but these errors were encountered: