When sending data via a post request in AngularJS, the code may look like this:
$http({
method: 'POST',
url: url,
data: inputParams,
headers: headers
})
.then(function succes(response) {
successCallBack(response.data);
}
Here is how the data appears in the browser:
https://i.sstatic.net/No2id.jpg
A similar scenario with jQuery results in this:
https://i.sstatic.net/QzOio.jpg
It seems that when using AngularJS, the data is sent as a JSON map and on the backend server it cannot be read from the request body.
There is a thread related to this issue on Stack Overflow: how to get json string from angular $http post request
Despite finding some information there, I still can't resolve my problem. Can someone guide me on what I might be missing?