diff --git a/src/main.ts b/src/main.ts index f545b062..307ecc5b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -69,6 +69,11 @@ async function bootstrap() { toProxy: true, secure: false, pathRewrite: { [rewriteUrl]: '' }, + on: { + proxyReq(proxyReq, req: Request) { + fixRequestBody(proxyReq, req); + }, + }, }); app.use(rewriteUrl, forwardProxy); }