From ce2c3990555f67b89ea4730a13611c3f2f43461f Mon Sep 17 00:00:00 2001 From: omaroughriss Date: Thu, 24 Jul 2025 12:59:04 +0200 Subject: [PATCH] Add allowed origin --- src/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.js b/src/server.js index 676581c..a49a455 100644 --- a/src/server.js +++ b/src/server.js @@ -13,7 +13,7 @@ const PORT = process.env.PORT || 8080; // Configuration CORS const corsOptions = { - origin: ['http://local.lecoffreio.4nkweb:3000', 'http://localhost:3000'], + origin: ['http://local.lecoffreio.4nkweb:3000', 'http://localhost:3000', 'https://lecoffreio.4nkweb.com'], methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'], allowedHeaders: ['Content-Type', 'Authorization'] };