Skip to content
Snippets Groups Projects

Met à jour les dépendances de l'application

4 files
+ 30
16
Compare changes
  • Side-by-side
  • Inline

Files

@@ -80,6 +80,7 @@ export type ApiResponse = {
// ---------
export async function calculateBudget(
fetch,
apiBudgetStateSimulationUrl: string,
jwt: string,
base, // year
@@ -118,11 +119,11 @@ export async function calculateBudget(
//resolved promise
method: "POST",
mode: "cors",
headers: new Headers({
headers: {
accept: "application/json",
"Content-Type": "application/json",
"jwt-token": jwt,
}),
},
//credentials: "omit", // <- À décommenter si, côté serveur, nous avons : Allow-Origin: *
//credentials: "include",
body: JSON.stringify(request),
Loading