We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
var authorize = function(username, key) { jQuery.ajaxSetup({ beforeSend: function(xhr) { xhr.setRequestHeader('Authorization', 'ApiKey ' + username + ':' + key); return xhr; } }); }; authorize('username', 'key');
authorize only needs to be called once. All subsequent ajax request will then be properly authorized.
authorize