From f83ed35e6d6402f6bafaa47dd9663b9241bf1d8e Mon Sep 17 00:00:00 2001 From: WalidMoovin Date: Sat, 4 Mar 2023 14:03:11 +0100 Subject: [PATCH] q --- front/volume/src/components/Profile.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/front/volume/src/components/Profile.svelte b/front/volume/src/components/Profile.svelte index 1702e84..c6726eb 100644 --- a/front/volume/src/components/Profile.svelte +++ b/front/volume/src/components/Profile.svelte @@ -37,7 +37,8 @@ try { const response = await fetch(api + '/avatar', { method: 'POST', - body: formData + body: formData, + mode: 'cors' }); const data = await response.json();