Send auth header with ajax requests

This commit is contained in:
Mark McDowall 2013-10-10 08:34:30 -07:00
parent 48c9e29eab
commit 7ac77ecfcc
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@ define(
delete xhr.data; delete xhr.data;
} }
s if (xhr) {
xhr.headers = xhr.headers || {};
xhr.headers.Authorization = window.NzbDrone.ApiKey;
}
return original.apply(this, arguments); return original.apply(this, arguments);
}; };