I am getting this error. XMLHttpRequest cannot load http://communityempowerment.org.pk/test-sample/api/get_category_index/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access.
my code is
.controller('MenuCtrl', function($http, $scope){
$scope.categories = [];
$http.get("http://communityempowerment.org.pk/test-sample/api/get_category_index/").then
(function(data){
$scope.categories = data.data;
console.log(data);
}, function(err){
console.log(err);
})
})