跨域
This commit is contained in:
@ -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分钟
|
||||
|
Reference in New Issue
Block a user