You need to include a body with the request. Angular removes the content-type header otherwise.
Add data: ''
to the argument to $http
.
More Related Contents:
- Is this a “Deferred Antipattern”?
- AngularJS 1.5+ Components do not support Watchers, what is the work around?
- Angular HttpPromise: difference between `success`/`error` methods and `then`’s arguments
- How to format date in angularjs
- Use of ng-src vs src
- AngularJS Paging with $location.path but no ngView reload
- How to format a date using ng-model?
- Descending order by date filter in AngularJs
- angular.js link behaviour – disable deep linking for specific URLs
- Can I inject a service into a directive in AngularJS?
- Otherwise on StateProvider
- angular directive encapsulating a delay for ng-change
- Angular: ng-bind-html filters out ng-click?
- AngularJS leaves comments in HTML: is it possible to remove them?
- What “things” can be injected into others in Angular.js?
- Usage of $broadcast(), $emit() And $on() in AngularJS
- Injecting $state (ui-router) into $http interceptor causes circular dependency
- How to handle $resource service errors in AngularJS
- AngularJS: ngInclude vs directive
- Angular bootstrap datepicker date format does not format ng-model value
- How to create a AngularJS promise from a callback-based API
- How to use `replace` of directive definition?
- Why give an “abstract: true” state a url?
- How to highlight a selected row in ngRepeat?
- How to implement an ng-change for a custom directive
- ng-repeat specify a starting index
- how to make synchronous http request in angular js
- How to detect if a user clicks browser back button in Angularjs
- how do I get ng-include directive to work with a Content Delivery Network?
- Inject module dynamically, only if required