+ 2
From the axios documentation, a simple POST request can be made as follows: axios.post('/user', { firstName: 'Fred', lastName: 'Flintstone' }) .then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); }); In your case, simply change the URL as well as the "firstName" and "lastName" data to your own, for example replacing "firstName: 'Fred'" with "WithCredentials: true"
5th Aug 2022, 9:00 PM
Daniel C
Daniel C - avatar