From 6ce1884c1b2382a009bdb72f48b738c7be1e6991 Mon Sep 17 00:00:00 2001 From: ywp Date: Thu, 23 Oct 2025 09:50:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20server/app.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app.js b/server/app.js index 82cf280..6928092 100644 --- a/server/app.js +++ b/server/app.js @@ -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',