From a0e389d50fdd8d519549d28160c134e3df4b3041 Mon Sep 17 00:00:00 2001 From: omaroughriss Date: Tue, 1 Jul 2025 16:42:59 +0200 Subject: [PATCH] Add service in cors origins --- src/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.js b/src/server.js index c01c003..c6a834e 100644 --- a/src/server.js +++ b/src/server.js @@ -8,7 +8,7 @@ const PORT = process.env.PORT || 3001; // Configuration CORS const corsOptions = { - origin: ['http://local.lecoffreio.4nkweb:3000', 'http://localhost:3000'], + origin: ['http://local.lecoffreio.4nkweb:3000', 'http://localhost:3000', 'http://lecofrre-front:3000'], methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'], allowedHeaders: ['Content-Type', 'Authorization'] };