update apiclient

This commit is contained in:
Luke Pulverenti 2015-12-26 20:28:54 -05:00
parent bba5791b88
commit 31a5eef8bc
10 changed files with 462 additions and 54 deletions

View file

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