Edit middlewares
This commit is contained in:
+17
-10
@@ -1,11 +1,18 @@
|
||||
module.exports = ({env}) => ({
|
||||
settings: {
|
||||
cache: {
|
||||
enabled: true,
|
||||
models: ['awtis', 'teks'],
|
||||
type: 'mem',
|
||||
maxAge: 3600000,
|
||||
enableEtagSupport: true
|
||||
|
||||
module.exports = ({ env }) => [
|
||||
'strapi::errors',
|
||||
'strapi::security',
|
||||
{
|
||||
name: 'strapi::cors',
|
||||
config: {
|
||||
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