From 5966b69d421769543b5c9801544c920a98ec1314 Mon Sep 17 00:00:00 2001 From: Prajwal G <93521144+Prajwalg19@users.noreply.github.com> Date: Sun, 1 Sep 2024 16:06:01 +0530 Subject: [PATCH] Update index.ts for cors --- backend/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/index.ts b/backend/index.ts index c46867d..cf6f603 100644 --- a/backend/index.ts +++ b/backend/index.ts @@ -16,7 +16,7 @@ const port = process.env.PORT || 4500 const corsOptions = { - origin: ["http://localhost:5173", "https://movie-finder-lyart.vercel.app"], + origin: ["http://localhost:5173", "https://movie-finder-lyart.vercel.app", "https://d29kwmevcoq2x9.cloudfront.net"], credentials: true } app.use(express.json());