fix auth
This commit is contained in:
parent
2cb43c08e3
commit
56dbf01a2b
@ -25,7 +25,7 @@ import { Notification } from '../../domain/entities/notification.entity';
|
|||||||
@UseGuards()
|
@UseGuards()
|
||||||
@WebSocketGateway({
|
@WebSocketGateway({
|
||||||
cors: {
|
cors: {
|
||||||
origin: process.env.FRONTEND_URL || 'http://localhost:3000',
|
origin: process.env.FRONTEND_URL || ['http://localhost:3000', 'http://localhost:3001'],
|
||||||
credentials: true,
|
credentials: true,
|
||||||
},
|
},
|
||||||
namespace: '/notifications',
|
namespace: '/notifications',
|
||||||
|
|||||||
@ -99,7 +99,7 @@ export const rateLimitConfig = {
|
|||||||
* CORS Configuration
|
* CORS Configuration
|
||||||
*/
|
*/
|
||||||
export const corsConfig = {
|
export const corsConfig = {
|
||||||
origin: process.env.FRONTEND_URL || 'http://localhost:3000',
|
origin: process.env.FRONTEND_URL || ['http://localhost:3000', 'http://localhost:3001'],
|
||||||
credentials: true,
|
credentials: true,
|
||||||
methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'],
|
methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'],
|
||||||
allowedHeaders: [
|
allowedHeaders: [
|
||||||
|
|||||||
@ -54,7 +54,7 @@ export default function RegisterPage() {
|
|||||||
password: formData.password,
|
password: formData.password,
|
||||||
firstName: formData.firstName,
|
firstName: formData.firstName,
|
||||||
lastName: formData.lastName,
|
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) {
|
} catch (err: any) {
|
||||||
setError(
|
setError(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user