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
The 'Content-Type' header is not being added to the request if the data property is undefined, you can send empty string as data "" for example.
var req = { method: 'GET', url: '', //headers: { // 'Content-Type': 'application/json;charset=utf-8' //}, data: "" }; $http(req);