2👍
✅
Add contentType: 'application/json; charset=UTF-8'
to your $.ajax()
call to indicate the content type of the request data.
dataType
argument specifies the format of the response, not the request!
Source:stackexchange.com