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