Change cors middleware
This commit is contained in:
@@ -2,7 +2,15 @@ module.exports = [
|
||||
'strapi::logger',
|
||||
'strapi::errors',
|
||||
'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::query',
|
||||
'strapi::body',
|
||||
|
||||
Reference in New Issue
Block a user