1
vote
3answers
141 views

With AngularJS, I don't want to set the global $http.defaults.headers.common. Can I send my custom header with each $resource call?

I'm calling a back-end server that I cannot control. Currently it's using jQuery ajax like this: return $.ajax({ type: "POST", url: "/api/cases/store", contentType: "application/json", ...
0
votes
0answers
163 views

Sending HTTP Post with multiple data through AngularJS

I am using AngularJS. I would like to send multiple data in a HTTP post through AngularJS. The backend runs Cakephp and I have verified that the Rest API works through python HTTP-post. I have this ...