mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-30 11:38:36 -07:00
Proxy token check through server
This commit is contained in:
parent
c39f89356c
commit
d943877e76
3 changed files with 12 additions and 6 deletions
|
@ -2737,12 +2737,8 @@ $(document).ready(function() {
|
|||
});
|
||||
|
||||
$.ajax({
|
||||
url: "https://plex.tv/api/resources",
|
||||
url: "check_pms_token",
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function (xhr) {
|
||||
xhr.setRequestHeader('X-Plex-Token', $('#pms_token').val());
|
||||
},
|
||||
statusCode: {
|
||||
401: function (xhr, status) {
|
||||
$("#updatebar").hide();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue