123
This commit is contained in:
@ -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,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user