From 46325f1fcfaf7506caa9d51c0f7f36829c6c79c3 Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Fri, 18 Oct 2024 15:56:15 +0530 Subject: [PATCH] fix: credential sending for file uploads --- space/core/services/file-upload.service.ts | 1 + web/core/services/file-upload.service.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/space/core/services/file-upload.service.ts b/space/core/services/file-upload.service.ts index efb6cf946f7..09e95f3c0fa 100644 --- a/space/core/services/file-upload.service.ts +++ b/space/core/services/file-upload.service.ts @@ -16,6 +16,7 @@ export class FileUploadService extends APIService { "Content-Type": "multipart/form-data", }, cancelToken: this.cancelSource.token, + withCredentials: false, }) .then((response) => response?.data) .catch((error) => { diff --git a/web/core/services/file-upload.service.ts b/web/core/services/file-upload.service.ts index efb6cf946f7..09e95f3c0fa 100644 --- a/web/core/services/file-upload.service.ts +++ b/web/core/services/file-upload.service.ts @@ -16,6 +16,7 @@ export class FileUploadService extends APIService { "Content-Type": "multipart/form-data", }, cancelToken: this.cancelSource.token, + withCredentials: false, }) .then((response) => response?.data) .catch((error) => {