mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
switch authentication to json content type
This commit is contained in:
parent
713636a007
commit
bbba73bc6f
@ -1066,7 +1066,14 @@ var ApiClient = {
|
||||
if (password) {
|
||||
postData.password = password;
|
||||
}
|
||||
return $.post(url, postData);
|
||||
|
||||
return $.ajax({
|
||||
type: "POST",
|
||||
url: url,
|
||||
data: JSON.stringify(postData),
|
||||
dataType: "json",
|
||||
contentType: "application/json"
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user