Blame view

config/middlewares.js 989 Bytes
Harish Patel committed
1 2
module.exports = [
  'strapi::errors',
3 4 5 6 7
  // 'strapi::security',
  {
    name: "strapi::security",
    config: {
      contentSecurityPolicy: {
8 9 10 11 12 13
        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
        },
14 15 16
        useDefaults: true,
        directives: {
          "connect-src": ["'self'", "https:"],
Harish Patel committed
17 18
          "img-src": ["'self'", "data:", "blob:", "dl.airtable.com", "hiranandanioffers.s3.ap-south-1.amazonaws.com"],
          "media-src": ["'self'", "data:", "blob:", "dl.airtable.com", "hiranandanioffers.s3.ap-south-1.amazonaws.com"],
19 20 21 22 23
          upgradeInsecureRequests: null
        }
      }
    }
  },
Harish Patel committed
24 25 26 27 28 29 30 31 32
  'strapi::cors',
  'strapi::poweredBy',
  'strapi::logger',
  'strapi::query',
  'strapi::body',
  'strapi::session',
  'strapi::favicon',
  'strapi::public',
];