mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-03-01 11:16:26 +00:00
Send auth header with ajax requests
This commit is contained in:
@@ -22,6 +22,10 @@ define(
|
||||
|
||||
delete xhr.data;
|
||||
}
|
||||
s if (xhr) {
|
||||
xhr.headers = xhr.headers || {};
|
||||
xhr.headers.Authorization = window.NzbDrone.ApiKey;
|
||||
}
|
||||
|
||||
return original.apply(this, arguments);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user