Handle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax().
      
        
        
          A typical prefilter registration using $.ajaxPrefilter() looks like this:
$.ajaxPrefilter(function( options, originalOptions, jqXHR ) {
  // Modify options, control originalOptions, store jqXHR, etc
});
where:
 options are the request options  originalOptions are the options as provided to the $.ajax() method, unmodified and, th