diff --git a/config/middleware.js b/config/middleware.js index d814a40..a34a363 100644 --- a/config/middleware.js +++ b/config/middleware.js @@ -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', +];