Yeoman, Grunt, AngularJS and error 404 on POST form
问题 I am trying to send a form with "POST" method with AngularJS. I use $http to send it but it always return "Cannot POST" and 404 error. The route is correct and only happens if I execute my app via Grunt (sending by "GET" works perfect). The app has been built using Yeoman. I think that it has to be a silly problem but I cannot make it work. The view: <form name="formLogin" ng-submit="login()"> <ul> <li> <label for="user">User</label> <input type="text" id="user" name="user" ng-model="user"> <