diff --git a/packages/satori/src/router.ts b/packages/satori/src/router.ts index 6a8ecac6..2ba2f21a 100644 --- a/packages/satori/src/router.ts +++ b/packages/satori/src/router.ts @@ -62,7 +62,9 @@ export class Router extends KoaRouter { // create server const koa = new Koa() - koa.use(require('koa-bodyparser')()) + koa.use(require('koa-bodyparser')({ + enableTypes: ['json', 'form', 'xml'], + })) koa.use(this.routes()) koa.use(this.allowedMethods())