跨域
This commit is contained in:
@ -13,7 +13,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
sse: {
|
sse: {
|
||||||
heartbeatInterval: 15000, // 15秒
|
heartbeatInterval: 15000, // 15秒
|
||||||
allowedOrigins: '*', //process.env.ALLOWED_ORIGINS?.split(',') || ['http://localhost:3001']
|
allowedOrigins: process.env.ALLOWED_ORIGINS?.split(',') || ['http://localhost:3001']
|
||||||
},
|
},
|
||||||
rateLimit: {
|
rateLimit: {
|
||||||
windowMs: 15 * 60 * 1000, // 15分钟
|
windowMs: 15 * 60 * 1000, // 15分钟
|
||||||
|
Reference in New Issue
Block a user