mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07: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;
|
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);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue