From 8716376491885dcf5a03e5cacbfedaa586a6dacb Mon Sep 17 00:00:00 2001 From: Puneet NJ Date: Sun, 5 Jan 2025 07:26:31 +0530 Subject: [PATCH] Changed the backend and frontend link in cors and lib.ts respectively --- backend/src/index.ts | 2 +- frontend/src/utils/lib.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index 95fe22a..c5022f0 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -9,7 +9,7 @@ app.use(cookieParser()); app.use(express.json()); app.use( cors({ - origin: "http://localhost:5173", + origin: "https://course-app.puneetnj.fun/", credentials: true, }) ); diff --git a/frontend/src/utils/lib.ts b/frontend/src/utils/lib.ts index e430bfd..fd6d87b 100644 --- a/frontend/src/utils/lib.ts +++ b/frontend/src/utils/lib.ts @@ -15,7 +15,7 @@ export const BLOCKCHAIN_COHORT_URL = export const COHORT2_URL = "https://appxcontent.kaxa.in/subject/2024-07-05-0.3715048534115637.jpeg"; -export const BACKEND_URL = "http://localhost:4000/api/v1"; +export const BACKEND_URL = "https://course-app-be.puneetnj.fun/api/v1"; export const ABOUT_CONTENT1 = "Welcome to 100xdevs.";