diff --git a/packages/engine/src/request/uploader/index.ts b/packages/engine/src/request/uploader/index.ts index 5bb0bd45..1447c550 100644 --- a/packages/engine/src/request/uploader/index.ts +++ b/packages/engine/src/request/uploader/index.ts @@ -45,6 +45,7 @@ class Uploader implements UploaderInterface { onUploading, onSuccess, onError, + withCredentials, crossOrigin, headers, } = this.options; @@ -80,7 +81,8 @@ class Uploader implements UploaderInterface { data: formData, contentType: this.options.contentType, type: this.options.type || 'json', - crossOrigin: crossOrigin, + withCredentials, + crossOrigin, headers: headers, success: (response: any) => { if (onSuccess) onSuccess(response, file);