fix CORS
This commit is contained in:
@@ -5,11 +5,12 @@ module.exports = [
|
|||||||
{
|
{
|
||||||
name: 'strapi::cors',
|
name: 'strapi::cors',
|
||||||
config: {
|
config: {
|
||||||
origin: ['*'],
|
origin: [
|
||||||
methods: ['GET'],
|
'https://gong.gp',
|
||||||
headers: ['Content-Type', 'Authorization', 'Origin', 'Accept', 'HX-Current-URL', 'HX-Request', 'HX-Target', 'HX-Trigger'],
|
],
|
||||||
keepHeaderOnError: true
|
methods: ['GET', 'POST', 'PUT', 'DELETE'],
|
||||||
}
|
headers: '*',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
'strapi::poweredBy',
|
'strapi::poweredBy',
|
||||||
'strapi::query',
|
'strapi::query',
|
||||||
|
|||||||
Reference in New Issue
Block a user