diff --git a/src/main.ts b/src/main.ts index 38aa9d4dbf9bdba590db1a5b662853f1d55a64bf..10c1b4a4192cf7008f6974dd0a309f088e9cbd46 100644 --- a/src/main.ts +++ b/src/main.ts @@ -11,7 +11,11 @@ async function bootstrap() { const app = await NestFactory.create(AppModule, { httpsOptions }); app.use(cookieParser()); app.enableCors({ - origin: '*', + origin: [ + 'http://klebert-host.com:33040', + 'http://klebert-host.com:33037', + 'http://localhost:4200', + ], credentials: true, methods: 'GET,HEAD,PUT,PATCH,POST,DELETE', allowedHeaders: 'Content-Type, Accept, Authorization',