更新 server/app.js
This commit is contained in:
@ -11,7 +11,7 @@ const PORT = process.env.PORT || 3001;
|
||||
|
||||
// 安全中间件
|
||||
app.use(helmet());
|
||||
|
||||
app.set('trust proxy', true);
|
||||
// 跨域配置
|
||||
app.use(cors({
|
||||
origin: process.env.FRONTEND_URL || 'https://feishuexcel.kinlim.com',
|
||||
|
||||
Reference in New Issue
Block a user