From 6eda77e84cba6ab91778c89cf2b4708dcb6dcb16 Mon Sep 17 00:00:00 2001 From: soufiane Date: Sat, 6 Dec 2025 17:44:36 +0100 Subject: [PATCH] feat: add preprod URL to CORS allowed origins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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);