Change cors middleware
This commit is contained in:
@@ -2,7 +2,15 @@ module.exports = [
|
|||||||
'strapi::logger',
|
'strapi::logger',
|
||||||
'strapi::errors',
|
'strapi::errors',
|
||||||
'strapi::security',
|
'strapi::security',
|
||||||
'strapi::cors',
|
{
|
||||||
|
name: 'strapi::cors',
|
||||||
|
config: {
|
||||||
|
origin: ['*'],
|
||||||
|
methods: ['GET'],
|
||||||
|
headers: ['Content-Type', 'Authorization', 'Origin', 'Accept', 'HX-Current-URL', 'HX-Request', 'HX-Target'],
|
||||||
|
keepHeaderOnError: true
|
||||||
|
}
|
||||||
|
},
|
||||||
'strapi::poweredBy',
|
'strapi::poweredBy',
|
||||||
'strapi::query',
|
'strapi::query',
|
||||||
'strapi::body',
|
'strapi::body',
|
||||||
|
|||||||
Reference in New Issue
Block a user