Edit middlewares

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-05-12 02:14:45 +04:00
parent 876a26ab24
commit c2fdf5128e
+17 -10
View File
@@ -1,11 +1,18 @@
module.exports = ({env}) => ({
settings: { module.exports = ({ env }) => [
cache: { 'strapi::errors',
enabled: true, 'strapi::security',
models: ['awtis', 'teks'], {
type: 'mem', name: 'strapi::cors',
maxAge: 3600000, config: {
enableEtagSupport: true origin: ['http://localhost', env('WEBSITE_URL')],
} }
} },
}) 'strapi::poweredBy',
'strapi::logger',
'strapi::query',
'strapi::body',
'strapi::session',
'strapi::favicon',
'strapi::public',
];