diff --git a/config/index.js b/config/index.js index 2e79851..4712a17 100644 --- a/config/index.js +++ b/config/index.js @@ -13,7 +13,7 @@ module.exports = { }, sse: { heartbeatInterval: 15000, // 15秒 - allowedOrigins: '*', //process.env.ALLOWED_ORIGINS?.split(',') || ['http://localhost:3001'] + allowedOrigins: process.env.ALLOWED_ORIGINS?.split(',') || ['http://localhost:3001'] }, rateLimit: { windowMs: 15 * 60 * 1000, // 15分钟