Proxy token check through server

This commit is contained in:
JonnyWong16 2022-01-05 11:17:35 -08:00
parent c39f89356c
commit d943877e76
No known key found for this signature in database
GPG key ID: 7A649674469E6574
3 changed files with 12 additions and 6 deletions

View file

@ -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();