diff --git a/index.js b/index.js index 89c38137..0ad1fabe 100644 --- a/index.js +++ b/index.js @@ -25,14 +25,19 @@ app.use( cors({ origin: function (origin, callback) { const allowedOrigins = [ + // Localhost "http://localhost:3000", "http://localhost:3001", "http://localhost:3002", "http://localhost:3003", "http://localhost:3004", "http://localhost:3005", + // Production "https://dsp5-archi-o24a-15m-g3.fr", - "https://dev.dsp5-archi-o24a-15m-g3.fr" + // Dev + "https://dev.dsp5-archi-o24a-15m-g3.fr", + // Preprod + "https://preprod.dsp5-archi-o24a-15m-g3.fr" ]; // Autoriser les requĂȘtes sans origin (Postman, curl, etc.) if (!origin) return callback(null, true);