From d325c91d0824fab1daf4d1c0289a59f9891104a2 Mon Sep 17 00:00:00 2001 From: MarcEricMartel <74071476+MarcEricMartel@users.noreply.github.com> Date: Sun, 13 Nov 2022 17:46:39 -0800 Subject: [PATCH] Update ReviewInvoice.js --- .../grosses-mitaines-ui/src/pages/ReviewInvoice.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GrossesMitaines/grosses-mitaines-ui/src/pages/ReviewInvoice.js b/GrossesMitaines/grosses-mitaines-ui/src/pages/ReviewInvoice.js index 3ed6c12..cdc35e4 100644 --- a/GrossesMitaines/grosses-mitaines-ui/src/pages/ReviewInvoice.js +++ b/GrossesMitaines/grosses-mitaines-ui/src/pages/ReviewInvoice.js @@ -127,11 +127,13 @@ const ReviewInvoice = () => { credentials: 'include', mode: 'cors', headers: { - 'accept': 'application/json', + 'Accept': 'text/json', + 'Content-Type': 'text/json' }, body: json }) console.log(json); + console.log(await response.json()); if (response.ok) { mySwal.fire({ title: 'Commande envoyée avec succès!',