mirror of
https://github.com/Sonarr/Sonarr
synced 2025-01-02 13:14:58 +00:00
Send auth header with ajax requests
This commit is contained in:
parent
48c9e29eab
commit
7ac77ecfcc
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue