Answers for "set content type header in jquery ajax"

3

how to set json type jquery ajax

$.ajax({
    type: "POST",
    contentType: "application/json",
    url: 'http://localhost:16329/Hello',
    data: { name: 'norm' },
    dataType: "json"
});
Posted by: Guest on June-30-2020

Code answers related to "set content type header in jquery ajax"

Code answers related to "Javascript"

Browse Popular Code Answers by Language