Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' he
Summary
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resourceContent
$http({method:'GET'
,url:mcsService.getCustomApiUrl("Test/HelloWorldPeople")
,headers:mcsService.getHttpHeaders()})
.then(function(response){
$scope.output = response.data;
console.log( $scope.output);
})
.catch(function(err) {
console.log('Error calling endpoint /departments: '+err);
});
}
I can't get the output when i connected to it please let me know how to resolve the issue.
1