This commit is contained in:
David 2025-10-21 22:00:54 +02:00
parent 2cb43c08e3
commit 56dbf01a2b
3 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ import { Notification } from '../../domain/entities/notification.entity';
@UseGuards()
@WebSocketGateway({
cors: {
origin: process.env.FRONTEND_URL || 'http://localhost:3000',
origin: process.env.FRONTEND_URL || ['http://localhost:3000', 'http://localhost:3001'],
credentials: true,
},
namespace: '/notifications',

View File

@ -99,7 +99,7 @@ export const rateLimitConfig = {
* CORS Configuration
*/
export const corsConfig = {
origin: process.env.FRONTEND_URL || 'http://localhost:3000',
origin: process.env.FRONTEND_URL || ['http://localhost:3000', 'http://localhost:3001'],
credentials: true,
methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'],
allowedHeaders: [

View File

@ -54,7 +54,7 @@ export default function RegisterPage() {
password: formData.password,
firstName: formData.firstName,
lastName: formData.lastName,
organizationId: formData.organizationId || 'default-org-id', // TODO: Implement proper org selection
organizationId: "a1234567-0000-4000-8000-000000000001", // Test Organization (default for development)
});
} catch (err: any) {
setError(