From 4630f8fae8e1c670eae357ca918b4f8f959df1dd Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Sun, 29 Sep 2024 12:23:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=9C=80=E5=A4=A7=E9=99=90?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app.js b/app.js index fe27c828d..43ee7b332 100644 --- a/app.js +++ b/app.js @@ -32,6 +32,7 @@ app.use(cors()); let opts = { preserveHostHdr: true, reqAsBuffer: true, + limit:"50mb", //转发之前触发该方法 proxyReqPathResolver: function(req, res) { //这个代理会把匹配到的url(下面的 ‘/api’等)去掉,转发过去直接404,这里手动加回来,