-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Allow setting withCredentials as $http default. #1209
Conversation
Thanks for your contribution! In order for us to be able to accept it, we ask you to sign our CLA (contributor's license agreement). CLA is important for us to be able to avoid legal troubles down the road. For individuals (a simple click-through form): For corporations (print, sign and scan+email, fax or mail): |
Done. |
merged |
Is this commit part of 1.0.3 version? I am using 1.0.3 version but withCredentials is not set by default. I have to set it to true through config object for every $http request. Is there a way i can set it globally? something like $httpProvider? |
I tried this way too, still it didn't work, config(['$httpProvider', function($httpProvider) { |
I have just checked changelog of 1.0.3 and 1.1.1 |
Can this also be merged into the v1.0.x branch? |
+1 |
Using this along with the settings from: http://enable-cors.org/server_apache.html and http://stackoverflow.com/questions/8074665/cross-origin-resource-sharing-with-credentials allowed me to get CORS with credentials working, thanks! |
Is there a way to set allowCredentials for $resource? I can't find any references for it. |
Here is a good reference: "$resource uses $http under the covers, so set things up with $http and $resource will be ready to go." I am using this in my .config method: $httpProvider.defaults.withCredentials = true; |
+1 it works |
Closes #1095.