Sending POST form data from AngularJS client to Express/Node.js server
问题 I am trying to read data from an AngularJS form and send it to an Express server. My client function to send the data does execute, but the request never reaches the server. I believe there is an issue with the URLs. Relevant part of my AngularJS controller : $scope.loginUser = function() { $scope.statusMsg = 'Sending data to server...'; $http({ url: 'http://##.##.##.##/login.js', // IP address replaced with ##'s method: 'POST', data: user, headers: {'Content-Type': 'application/json'} })