Hi I'm trying to call a php from the angularjs control file.
Both PHP and Control file are in the same folders and inside www
directory of Wamp
and I'm calling php like this
`$scope.url='far_submit.php';`
$http.post($scope.url, {"name": $scope.fname, "email": $scope.email, "lname": $scope.lname}).
success(function(data, status) {...}
I'm getting an error in browser like XMLHttpRequest cannot load file:///C:/wamp/www/reg/far_submit.php. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
Where I'm doing wrong ?
Thank you.