diff --git a/src/app.module.ts b/src/app.module.ts index 2c7dc95e5..b7beb50ad 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -38,6 +38,10 @@ const routes: Routes = [ path: '/api/v2', module: PublicApiModule, }, + { + path: '/api/private', + module: PrivateApiModule, + }, ]; @Module({ diff --git a/src/main.ts b/src/main.ts index 212922f91..589b01696 100644 --- a/src/main.ts +++ b/src/main.ts @@ -39,6 +39,11 @@ async function bootstrap(): Promise { ); } + app.enableCors({ + origin: appConfig.rendererOrigin, + }); + logger.log(`Enabling CORS for '${appConfig.rendererOrigin}'`, 'AppBootstrap'); + app.useGlobalPipes( new ValidationPipe({ forbidUnknownValues: true,