From 344b25a2d80cf483cde15163a3affbaa90a62b41 Mon Sep 17 00:00:00 2001 From: Developer Date: Mon, 18 May 2026 22:00:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=94=BE=E5=AE=BD=20CORS=20origin=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=B8=BA=E5=85=81=E8=AE=B8=E6=89=80=E6=9C=89?= =?UTF-8?q?=E6=9D=A5=E6=BA=90=E4=BB=A5=E6=94=AF=E6=8C=81=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/app.js b/src/app.js index 5f3c8d9..950f53f 100644 --- a/src/app.js +++ b/src/app.js @@ -42,11 +42,7 @@ app.use(helmet({ }, })); app.use(cors({ - origin: [ - 'https://servicewechat.com', - 'https://miniapp-api-test.dxz99wyr.cn', - 'https://api-miniapp.dxz99wyr.cn' - ], + origin: true, methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'], allowedHeaders: ['Content-Type', 'Authorization', 'Accept', 'Origin', 'X-Requested-With'], credentials: false