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"] }));