How to fix Form Data via XHR returns 400 Bad Request This is my code, quite simple. just a POST request to my api endpoint with FormData.