fix auth
This commit is contained in:
parent
2cb43c08e3
commit
56dbf01a2b
@ -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',
|
||||
|
||||
@ -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: [
|
||||
|
||||
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user