From e07063ccc3dbcda544f72f315c3d223dcc12c1dd Mon Sep 17 00:00:00 2001 From: Lukian LEIZOUR Date: Tue, 4 Jun 2024 15:10:18 +0200 Subject: [PATCH] commit --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 72baefd..39bb8b3 100644 --- a/index.js +++ b/index.js @@ -13,7 +13,7 @@ const port = config.port || 3000; app.use(express.json()); app.use(cookieParser()); app.use(cors({ - origin: "https://joclud.leizour.fr", + origin: ["https://joclud.leizour.fr", "http://localhost:5173"], methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"], allowedHeaders: ["Content-Type", "Authorization"] }));