I\'m trying to authorise an AJAX query based on this tutorial. It sets the request headers before send with the appropriate authorisation information by using the Crypto lib
This finally seems to work for me. There could be collisions on an individual call basis. Sets this method as a default for future connection options.
//Function( jqXHR jqXHR ) $.ajaxSetup( {beforeSend: function(jqXHR) { jqXHR.setRequestHeader( "My-Header", "My-Value" ); } } );