While making a Ajax Request with Json object to "Web Api" using Angular js $http service.It raise CORS Issue,There is no Resolution by adding the following header "Access-Control-Allow-Origin" also,Please suggest me the right solution
Example:
var testmodule = angular.module('testmod', []);
testmodule.controller('testcontroller', function ($scope, $http)
{
$scope.Member ={'name':'andrew','age':12,'class':10}
$scope.savedata =function(){
$http({
url: "**api url**",
method: 'POST',
data: $scope.Member
}).success(function (data, status) { }).error(function (data, status, headers) { })
}
})