-2

I have written a flask api which recieves post request params using request.form. API performs perfectly in postman but fails in axios request.

1 Answers1

-1

You can try this way.I hope it will helps you.

axios({
      method: 'post',
      url: '/user/12345',
      data: {
        firstName: 'Fred',
        lastName: 'Flintstone'
      }
    });
Pushprajsinh Chudasama
  • 7,772
  • 4
  • 20
  • 43