Jquery: Common place to modify all the ajax request
A lot of time we have to add some common parameter in request header or need to include some parameter in request body or query string. Jquery gives us the flexibility to the same using ajaxSetup method $.ajaxSetup({ // Define a global before request send beforeSend: function(xhr, settings) { if (settings.contentType) { //Update the query…