If i post formdata i am facing this error.× Unhandled Rejection (TypeError): Failed to fetch
handleSubmit(event) { event.preventDefault(); const data = new FormData(event.target); let user = JSON.parse(localStorage.getItem('user')); const accessToken=user; fetch(url, { method: 'POST', headers:{ Accept: 'application/json', Authorization: "Bearer " +accessToken }, body: data, }); }