@tarojs/taro-h5 3.5.0-alpha.13 → 3.5.0-alpha.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -2594,6 +2594,7 @@ const convertObjectUrlToBlob = url => {
2594
2594
  const xhr = new XMLHttpRequest();
2595
2595
  xhr.open('GET', url, true);
2596
2596
  xhr.responseType = 'blob';
2597
+ xhr.withCredentials = true;
2597
2598
  xhr.onload = function () {
2598
2599
  if (this.status === 200) {
2599
2600
  resolve(this.response);
@@ -2616,6 +2617,7 @@ const createDownloadTask = ({ url, header, success, error }) => {
2616
2617
  progressUpdate: new CallbackManager()
2617
2618
  };
2618
2619
  xhr.open('GET', url, true);
2620
+ xhr.withCredentials = true;
2619
2621
  xhr.responseType = 'blob';
2620
2622
  setHeader(xhr, header);
2621
2623
  xhr.onprogress = e => {
@@ -2885,6 +2887,7 @@ const createUploadTask = ({ url, filePath, formData = {}, name, header, timeout,
2885
2887
  progressUpdate: new CallbackManager()
2886
2888
  };
2887
2889
  xhr.open('POST', url);
2890
+ xhr.withCredentials = true;
2888
2891
  setHeader(xhr, header);
2889
2892
  for (formKey in formData) {
2890
2893
  form.append(formKey, formData[formKey]);