I need to add some header details to one specific ajax request that one of the third party control will make. The third party control allows me to set the URL but it does not allow me to add header information to the request.
So far I am able to add header to every ajax request by this code:
$( document ).ajaxSend(function( event, jqxhr, settings ) {
jqxhr.setRequestHeader(key, value);
});
Is there any way to add this header only for specific URL ?