继续完善保险项目和养殖端小程序
This commit is contained in:
@@ -19,7 +19,10 @@ const PORT = process.env.PORT || 3000;
|
||||
// 安全中间件
|
||||
app.use(helmet());
|
||||
app.use(cors({
|
||||
origin: process.env.FRONTEND_URL || 'http://localhost:3001',
|
||||
origin: [
|
||||
process.env.FRONTEND_URL || 'http://localhost:3001',
|
||||
'http://localhost:3002'
|
||||
],
|
||||
credentials: true
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user