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…
Reference in New Issue
Block a user