This commit is contained in:
2026-02-06 02:52:33 +03:00
parent 7de2c33bfe
commit bbb453826b
3 changed files with 6 additions and 6 deletions

View File

@ -12,14 +12,14 @@ async function bootstrap() {
// Security
app.use(helmet());
// CORS (веб часто на 3000)
// CORS (веб на 3080)
const allowedOrigins = [
configService.get('NEXT_PUBLIC_APP_URL'),
'http://localhost:3080',
'http://localhost:3000',
'http://localhost:3125',
].filter(Boolean) as string[];
app.enableCors({
origin: allowedOrigins.length ? allowedOrigins : 'http://localhost:3000',
origin: allowedOrigins.length ? allowedOrigins : 'http://localhost:3080',
credentials: true,
});