I'm going crazy with this after searching for two days, I really hope someone can help.
I have an AngularJS project using gulp. From here I call a basic method to execute and http post to my c# API like so:
var $http({
url: serverAddress + '/api/general/sendemail',
dataType: 'json',
data: '',
headers: {
"Content-Type": "application/json"
}
Whenever I call this method (or any method using $http), it seems to execute the call twice on the server.
The strange thing is that it only does it from AngularJS.
If I run it on postman, it executes only once.
Any ideas?