From 5df026460e3172ad9b248e741064078eb8841cc5 Mon Sep 17 00:00:00 2001 From: Harshit Shukla <109151752+HarshitShukla-dev@users.noreply.github.com> Date: Wed, 16 Oct 2024 11:11:16 +0530 Subject: [PATCH] Update index.ts --- Backend/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Backend/src/index.ts b/Backend/src/index.ts index 73b413f..46f9c56 100644 --- a/Backend/src/index.ts +++ b/Backend/src/index.ts @@ -5,11 +5,11 @@ import cookieparser from "cookie-parser" const app = express(); -app.use(cors({ credentials: true, origin: true })); +app.use(cors()); app.use(express.json()) app.use(cookieparser()) app.use("/api/v1",rootRouter) app.listen(process.env.PORT || 8080, function() { console.log(`Listening on Port: ${process.env.PORT || 8080}`); -}); \ No newline at end of file +});