-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.

0

1 Answer 1

-1

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

axios({
      method: 'post',
      url: '/user/12345',
      data: {
        firstName: 'Fred',
        lastName: 'Flintstone'
      }
    });
Sign up to request clarification or add additional context in comments.

1 Comment

Of course I have tried this. It doesn't help.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.