I\'m trying to make a cross-origin POST request using Angular $http with the following code.
//I\'ve tried setting and removing these http config options $http.d
I face the same issue, while setting the headers. we need to send data parameter in the $http request like this
$http
$http({ method: 'POST', headers: { 'Content-Type': 'application/json}, data: {}, url: url });
we can send blank data also. it will work fine.