I have a very simple .NET Web API hosted in Azure, with two very simple methods:
[EnableCors(origins: \"http://simpleapiearl.azurewebsites.net\", headers: \"
With AngularJS you can do in an easier way.
You can inject $httpParamSerializer and then prepare your data through $httpParamSerializer(data).
So your call should look something like:
$http({
method: 'POST',
url: 'http://simpleApiEarl.azurewebsites.net/api/envelopes',
data: $httpParamSerializer(env),
headers: {'Content-Type': 'application/x-www-form-urlencoded'}
})