AngularJs $http.post() does not send data

前端 未结 30 1766
我在风中等你
我在风中等你 2020-11-22 02:51

Could anyone tell me why the following statement does not send the post data to the designated url? The url is called but on the server when I print $_POST - I get an empty

30条回答
  •  盖世英雄少女心
    2020-11-22 03:33

    To build on @felipe-miosso's answer:

    1. Download it as an AngularJS module from here,
    2. Install it
    3. Add it to your application:

      var app = angular.module('my_app', [ ... , 'httpPostFix']);
      

提交回复
热议问题