I\'ve googled for a while now and can only find what processData: false
does. I can\'t find anyone who has experienced this same issue.
I\'m passing JSO
Actually, processData
by default assumes that data
passed is an object and sends it as application/x-www-form-urlencoded
.
Summing up everything said above by @lonesomeday and @vsm to send raw JSON (what is different from the form data) you need to:
$.ajax({
url: 'http://here-i.am/send-me/an/angel', // Determining far end
data: JSON.stringify({foo: "bar"}), // Obtaining proper JSON string from data object
processData: false, // Preventing default data parse behavior
contentType: "application/json" // Setting proper `ContentType` for our data
...
});