From c08223fbb5897f30997b8f2b49dda04885069ed9 Mon Sep 17 00:00:00 2001
From: Pierre Ferreira
Date: Thu, 7 Dec 2023 10:37:32 +0100
Subject: [PATCH] mise de localhost pour les serv :tada:
---
cryptide_project/server/api/server.js | 2 +-
cryptide_project/src/AdressSetup.ts | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/cryptide_project/server/api/server.js b/cryptide_project/server/api/server.js
index e035cff..f511624 100644
--- a/cryptide_project/server/api/server.js
+++ b/cryptide_project/server/api/server.js
@@ -14,7 +14,7 @@ const port = 3003;
// Middleware
app.use(cors(
{
- origin: ["http://172.20.10.4:3000", "http://172.20.10.4:3000"],
+ origin: ["http://localhost:3000", "http://172.20.10.4:3000"],
credentials: true
}
)); // Autoriser les requĂȘtes cross-origin
diff --git a/cryptide_project/src/AdressSetup.ts b/cryptide_project/src/AdressSetup.ts
index cbfa6bc..b1722ea 100644
--- a/cryptide_project/src/AdressSetup.ts
+++ b/cryptide_project/src/AdressSetup.ts
@@ -1,6 +1,8 @@
-const ADRESSE_WEBSERVER = "http://172.20.10.4:3002"
+// const ADRESSE_WEBSERVER = "http://172.20.10.4:3002"
+// const ADRESSE_DBSERVER = "http://172.20.10.4:3003"
+const ADRESSE_WEBSERVER = "http://localhost:3002"
+const ADRESSE_DBSERVER = "http://localhost:3003"
-const ADRESSE_DBSERVER = "http://172.20.10.4:3003"
const tmp = ADRESSE_DBSERVER
const tmp2 = ADRESSE_WEBSERVER