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