Get raw request body in custom controller

Actually I was fussing around with the config/middleware.js and yes the guys above have the right solution. You have to place the following instead of strapi::body

‘strapi::cors’,
‘strapi::poweredBy’,
‘strapi::logger’,
‘strapi::query’,
// ‘strapi::body’,
// these lines are telling Strapi how to streamline Stripe body.
{
  name: ‘strapi::body’,
      config: {
          includeUnparsed: true,
          patchKoa: true,
          multipart: true,
      },
},
1 Like