From 22247a26cd99a751f4135be1b3d247d89aedd3a7 Mon Sep 17 00:00:00 2001 From: Fahad Faruqi Date: Tue, 11 Jun 2024 21:17:19 -0400 Subject: [PATCH] mend --- server.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server.ts b/server.ts index 4d139ff..7f2ba17 100644 --- a/server.ts +++ b/server.ts @@ -36,10 +36,7 @@ setInterval(async () => { logger.info(`Database is ${dbAval ? "available" : "not available"}`); }, INTERVAL); -// app.use(cors( // TODO: do this correctly -// "byteccny", -// "localhost:3000"; -// )); +app.use(cors()); app.use((req: any, res: any, next: any) => { logger.info(`Received a ${req.method} request for ${req.url}`); next();