I have a question regarding to ajax,
I have something like:
ajax({
type: 'post',
data: {
'mode': 'update',
'data': JSON.stringify(jsonData)
},
url: '...',
dataType: 'JSON',
success: function(res) {
//...
},
error: function(res) {
//...
}
});
But I do not use contentType, but my request actually contain JSON and one extra info of 'mode', should I add some information here for contentType, I tested my calls, they are working without issues, but I would like to know if there is any issues with this call.
any help would be much appreciated.