mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 20:44:00 +02:00
ApiKey Authentication cleanup
This commit is contained in:
@@ -21,11 +21,8 @@ define(function () {
|
||||
delete xhr.data;
|
||||
}
|
||||
if (xhr) {
|
||||
if (!xhr.headers) {
|
||||
xhr.headers = {};
|
||||
}
|
||||
|
||||
xhr.headers["ApiKey"] = window.NzbDrone.ApiKey;
|
||||
xhr.headers = xhr.headers || {};
|
||||
xhr.headers['Authorization'] = window.NzbDrone.ApiKey;
|
||||
}
|
||||
|
||||
return original.apply(this, arguments);
|
||||
|
Reference in New Issue
Block a user