I'm getting 404 error in the console when I try to send a $http.post to a php file. I have added these 2 lines in the php file, but it still doesn't work. The Post request works fine in Chrome.
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");