KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to make a jsonp POST request with the content type 'application/json'. I can get the POST request to the server like this: jQuery.ajax({ type: 'POST', url: url, data: data, success: success, error: error, async: true, complete: complete, timeout: TIMEOUT, scriptCharset: 'UTF-8', dataType: 'jsonp', jsonp: '_jsonp', }); But as soon as I add the line: contentType: "application/json" it starts sending it as an OPTIONS request rather than a POST. How can I specify the content type and still submit the request as a POST?
Tags (comma-separated)
Save Edits
Cancel