From 93c40ad79aacac8db62bdd3eea91e6ceb60c1aa6 Mon Sep 17 00:00:00 2001 From: "gwenael.planchon" Date: Fri, 22 Mar 2024 10:31:50 +0100 Subject: [PATCH] remettre la requete --- science-quest/src/components/Inscription.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/science-quest/src/components/Inscription.vue b/science-quest/src/components/Inscription.vue index cb554fb..58de3dd 100644 --- a/science-quest/src/components/Inscription.vue +++ b/science-quest/src/components/Inscription.vue @@ -10,7 +10,7 @@ export default { donnees.motDePasse=hashMDP const donneesJson=JSON.stringify(donnees) console.log(donnees) - //fetch(REST_API+"/utilisateur", {method:"POST", body:donneesJson}).then(response=>) + fetch(REST_API+"/utilisateur", {method:"POST", body:donneesJson, headers:{"Content-Type":"application/json"}}).then(response=>console.log(response)) }) }, async hasherMDP(mdp){