Edit middlewares
This commit is contained in:
+17
-10
@@ -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',
|
||||||
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user