config: change middleware file
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
|
||||
module.exports = ({ env }) => [
|
||||
'strapi::logger',
|
||||
'strapi::errors',
|
||||
'strapi::security',
|
||||
{
|
||||
name: 'strapi::cors',
|
||||
config: {
|
||||
origin: ['http://localhost', env('WEBSITE_URL')],
|
||||
}
|
||||
},
|
||||
'strapi::poweredBy',
|
||||
'strapi::query',
|
||||
'strapi::body',
|
||||
'strapi::session',
|
||||
'strapi::favicon',
|
||||
'strapi::public',
|
||||
];
|
||||
Reference in New Issue
Block a user