Cors config in koa/corse 5.0.0 is not Work

hi. i have strapi v 4.24.2 and koa/cors 5.0.0 and my cors config is:

module.exports = [
‘strapi::errors’,
‘strapi::security’,
{
name: ‘strapi::poweredBy’,
config: {
poweredBy: ‘daniel’,
},
},
{
name: ‘strapi::cors’,
config: {
enabled: true,
headers: ‘’,
origin: [‘https://****.ir’]
}
},
‘strapi::logger’,
‘strapi::query’,
{
name: “strapi::body”,
config: {
formLimit: “10mb”, // modify form body
jsonLimit: “10mb”, // modify JSON body
textLimit: “10mb”, // modify text body
formidable: {
maxFileSize: 10 * 1024 * 1024, // multipart data, modify here limit of uploaded file size
},
},
},
‘strapi::session’,
‘strapi::favicon’,
‘strapi::public’,
];.

this config is work in v 4.23.0 and koa/cors 3.4.3.
koa 3.4.3 has vul and i have to upgrade to 5.0.0.
i want to access my api just from localhost:1337. but when i config it like above, any request cat give response. how can i handle this error.
tnx

i install v 4.25.4 (release last night) but still error (cors not working) exist!!