From 24cb452cc22bcb3287fdcf614c7ab6c90ee80eeb Mon Sep 17 00:00:00 2001 From: Chak <444chak@gmail.com> Date: Thu, 19 Dec 2024 10:22:26 +0100 Subject: [PATCH 1/2] =?UTF-8?q?Revert=20"=F0=9F=94=A7fix:=20Mise=20=C3=A0?= =?UTF-8?q?=20jour=20de=20la=20configuration=20Axios=20pour=20utiliser=20u?= =?UTF-8?q?ne=20cl=C3=A9=20commune=20statique=20et=20suppression=20de=20l'?= =?UTF-8?q?appel=20API=20pour=20la=20cl=C3=A9=20dynamique."?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 729510e4d83c3f781a2c63af8f2bcc20f105194c. --- front-js/src/axiosConfig.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/front-js/src/axiosConfig.ts b/front-js/src/axiosConfig.ts index cb80b9b..08af79c 100644 --- a/front-js/src/axiosConfig.ts +++ b/front-js/src/axiosConfig.ts @@ -3,15 +3,15 @@ import axios from "axios"; const instance = axios.create({ baseURL: "http://127.0.0.1:8000/", headers: { - "Content-Type": "application/json", - }, + "Content-Type": "application/json" + } }); instance.interceptors.request.use(async (config) => { - // const response = await fetch("/api/config"); - // const { commonKey } = await response.json(); - config.headers["X-Common-Key"] = "user"; + const response = await fetch('/api/config'); + const { commonKey } = await response.json(); + config.headers["X-Common-Key"] = commonKey; return config; }); -export default instance; +export default instance; \ No newline at end of file From 88891ac50c1f9de0a48d751f59839e622927a79d Mon Sep 17 00:00:00 2001 From: Chak <444chak@gmail.com> Date: Thu, 19 Dec 2024 10:22:51 +0100 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=94=A7fix:=20Suppression=20du=20compo?= =?UTF-8?q?sant=20Card=20pour=20IPv6=20en=20double=20dans=20le=20tableau?= =?UTF-8?q?=20de=20bord?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front-js/src/app/dashboard/page.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/front-js/src/app/dashboard/page.tsx b/front-js/src/app/dashboard/page.tsx index 1a99efb..68c93c8 100644 --- a/front-js/src/app/dashboard/page.tsx +++ b/front-js/src/app/dashboard/page.tsx @@ -130,13 +130,6 @@ export default function Dashboard() { image="/modules_assets/scapy.svg" /> - - -