I was faced with this issue,
take for instance you want to configure strapi::cors
middleware. according to the documentation we do
{
resolve: ‘strapi::cors’,
config: {
origin: [‘host1’, ‘host2’],
},
}
this won't work.
Use "name" property like this.
{
name: ‘strapi::cors’,
config: {
origin: [‘host1’, ‘host2’],
},
}
If it help you, vote up.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.