Increase API request timeout to accommodate long notice slip file uploads
This commit is contained in:
parent
ce54bdfecf
commit
4265123589
@ -31,7 +31,7 @@ function apirequest(url, data, success, error, method, username, password) {
|
|||||||
dataType: "json",
|
dataType: "json",
|
||||||
method: method,
|
method: method,
|
||||||
data: data,
|
data: data,
|
||||||
timeout: 10 * 1000,
|
timeout: 30 * 1000,
|
||||||
beforeSend: function (xhr) {
|
beforeSend: function (xhr) {
|
||||||
if (typeof username === 'string' && typeof password === 'string') {
|
if (typeof username === 'string' && typeof password === 'string') {
|
||||||
xhr.setRequestHeader("Authorization", "Basic " + btoa(username + ":" + password));
|
xhr.setRequestHeader("Authorization", "Basic " + btoa(username + ":" + password));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user