first commit

This commit is contained in:
DerJesen
2025-12-11 09:49:24 +01:00
parent 212808529d
commit 5eb1c8550e
9 changed files with 107 additions and 24 deletions

View File

@@ -9,17 +9,10 @@ async function bootstrap() {
// CORS Konfiguration
app.enableCors({
origin: [
'http://localhost:5173', // Vite Dev Server
'http://127.0.0.1:5173', // Vite Dev Server (Alternative)
'http://localhost:5500',
'http://127.0.0.1:5500',
'http://localhost',
'*'
],
origin: true,
credentials: true,
methods: ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS'],
allowedHeaders: ['Content-Type', 'Authorization'],
allowedHeaders: ['Content-Type', 'Authorization', 'Accept'],
});
// Globales Präfix für alle Routes
@@ -37,6 +30,6 @@ async function bootstrap() {
}),
);
await app.listen(process.env.PORT ?? 3000);
await app.listen(process.env.PORT ?? 3000, '0.0.0.0');
}
bootstrap();