diff --git a/server/server.js b/server/server.js index 84299b7..fb7abab 100644 --- a/server/server.js +++ b/server/server.js @@ -16,7 +16,7 @@ const PORT = process.env.PORT || 5000; // CORS Configuration app.use( cors({ - origin: "http://localhost:3000", // Adjust this to match your frontend URL + origin: process.env.FRONTEND_URL, // Adjust this to match your frontend URL methods: ["GET", "POST", "PUT", "DELETE"], allowedHeaders: ["Content-Type", "Authorization"], credentials: true, // Allow cookies to be sent with requests