diff --git a/src/app.js b/src/app.js index 70c25d1..b0b64bf 100644 --- a/src/app.js +++ b/src/app.js @@ -31,7 +31,7 @@ const { rateLimiterUsingThirdParty } = require('./middleware/rateLimiter'); // CORS configuration const corsOptions = { - origin: process.env.CORS, + origin: [process.env.CORS, process.env.CORS_ADMIN], methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'], allowedHeaders: ['Content-Type', 'Authorization'], credentials: true,