Hard to guess from this example but you are sending JSON as the body while setting the Content-Type header to indication a form submission, set that to "application/json" instead and see if that helps?