update apiclient
This commit is contained in:
parent
bba5791b88
commit
31a5eef8bc
10 changed files with 462 additions and 54 deletions
|
@ -187,7 +187,8 @@
|
|||
|
||||
var fetchRequest = {
|
||||
headers: headers,
|
||||
method: request.type
|
||||
method: request.type,
|
||||
credentials: 'same-origin'
|
||||
};
|
||||
|
||||
var contentType = request.contentType;
|
||||
|
@ -221,6 +222,9 @@
|
|||
|
||||
var timeout = setTimeout(reject, timeoutMs);
|
||||
|
||||
options = options || {};
|
||||
options.credentials = 'same-origin';
|
||||
|
||||
fetch(url, options).then(function (response) {
|
||||
clearTimeout(timeout);
|
||||
resolve(response);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue