diff --git a/lib/rest/restServer.ts b/lib/rest/restServer.ts index 958085b..8b2bd93 100644 --- a/lib/rest/restServer.ts +++ b/lib/rest/restServer.ts @@ -24,7 +24,7 @@ export class RestServer { if (config.get('app.cors') || options?.cors) { const corsRule = options?.cors ?? config.get('app.cors'); - app.enable(corsRule); + app.enableCors(corsRule); } /**