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