diff --git a/backend/src/index.ts b/backend/src/index.ts index df06c9e..6f11abe 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -31,9 +31,11 @@ const io = new Server(httpServer, { }); // Security middleware -app.use(helmet()); +app.use(helmet({ + crossOriginResourcePolicy: { policy: "cross-origin" } +})); app.use(cors({ - origin: process.env.FRONTEND_URL || 'http://localhost:3000', + origin: true, // Allow all origins in dev to fix the IP issue credentials: true }));