middlewares.js 949 Bytes
module.exports = [
  'strapi::errors',
  // 'strapi::security',
  {
    name: "strapi::security",
    config: {
      contentSecurityPolicy: {
        formLimit: "256mb", // modify form body
        jsonLimit: "256mb", // modify JSON body
        textLimit: "256mb", // modify text body
        formidable: {
          maxFileSize: 200 * 1024 * 1024, // multipart data, modify here limit of uploaded file size
        },
        useDefaults: true,
        directives: {
          "connect-src": ["'self'", "https:"],
          "img-src": ["'self'", "data:", "blob:", "dl.airtable.com", "zangoaws.s3.amazonaws.com"],
          "media-src": ["'self'", "data:", "blob:", "dl.airtable.com", "zangoaws.s3.amazonaws.com"],
          upgradeInsecureRequests: null
        }
      }
    }
  },
  'strapi::cors',
  'strapi::poweredBy',
  'strapi::logger',
  'strapi::query',
  'strapi::body',
  'strapi::session',
  'strapi::favicon',
  'strapi::public',
];