From 425fb007f37cb52de89e0e53932de1b788c54617 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 18 Apr 2026 01:45:27 +0000 Subject: [PATCH] Fix: Update CORS and network config for dev IP access --- backend/src/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 }));