You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
strapi-guitar-school/config/middlewares.ts

31 lines
663 B

export default [
'strapi::errors',
{
name: 'strapi::security',
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
'connect-src': ['\'self\'', 'https:'],
'img-src': ['\'self\'', 'data:', 'blob:', 'res.cloudinary.com'],
'media-src': [
'\'self\'',
'data:',
'blob:',
'res.cloudinary.com',
],
upgradeInsecureRequests: null,
},
},
},
},
'strapi::cors',
'strapi::poweredBy',
'strapi::logger',
'strapi::query',
'strapi::body',
'strapi::session',
'strapi::favicon',
'strapi::public',
];