You should pass a configuration object, like so
$http.post(url, {withCredentials: true, ...})
or in older versions:
$http({withCredentials: true, ...}).post(...)
See also your other question.
More Related Contents:
- AngularJS performs an OPTIONS HTTP request for a cross-origin resource
- How to cancel an $http request in AngularJS?
- htaccess redirect for Angular routes
- AngularJS. How to call controller function from outside of controller component
- When writing a directive in AngularJS, how do I decide if I need no new scope, a new child scope, or a new isolated scope?
- Dynamic validation and name in a form with AngularJS
- How do I inject a controller into another controller in AngularJS
- How to use $http promise response outside success handler
- AngularJS : Where to use promises?
- AngularJS. When select have ng-model attribute, ng-selected not working
- How to use ng-repeat for dictionaries in AngularJs?
- Confused about Angularjs transcluded and isolate scopes & bindings
- Using success/error/finally/catch with Promises in AngularJS
- Can I access a form in the controller?
- Cannot get to $rootScope
- ng-repeat not updating on update of array
- Angular directive how to add an attribute to the element?
- get original element from ng-click
- Scope issue in AngularJS using AngularUI Bootstrap Modal
- angularjs share data config between controllers
- Can I use one ng-app inside another one in AngularJS
- Cordova / Ionic : $http request not processing while emulating or running on device
- AngularJS watch array of objects for data change
- When to use the AngularJS `$onInit` Life-Cycle Hook
- Refreshing page gives “Page not found”
- ERROR in Cannot find module ‘node-sass’
- Angular directive name: only lower case letters allowed?
- Using the same controller on different elements to refer to the same object
- Setting default value in select drop-down using Angularjs
- Why ng-scope is added to javascript inline of my partial view and makes alert not working?