Skip to content

Tag: post

Form does not have data in FormData javascript

I’m trying to submit a form without redirecting using AJAX. From the answers I saw the [best](new URLSearchParams(new FormData(form).entries()); ) I found (I think) without using jQuery was: I’m trying to apply this mechanism in my code, but for some reason my form does not have information. I gue…

How to post query parameters with Axios?

I am trying to post on an API with some query params. This is working on PostMan / Insomnia when I am trying to by passing mail and firstname as query parameters : However, when I am trying to do it with my react native app, I got a 400 error (Invalid Query Parameters). This is the post method :