From 683d3535460709ef5c3e696d413fa88820c1edf9 Mon Sep 17 00:00:00 2001 From: Sampy147 Date: Fri, 17 Nov 2023 16:13:29 +0800 Subject: [PATCH] Changed cors options to fix deployment bug --- backend/chat-service/src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/chat-service/src/app.ts b/backend/chat-service/src/app.ts index 3f63eb5..4dcfaf5 100644 --- a/backend/chat-service/src/app.ts +++ b/backend/chat-service/src/app.ts @@ -10,7 +10,7 @@ const server = http.createServer(app); const io = new Server(server, { cors: { - origin: "http://localhost:8080", + origin: "*", methods: ["GET", "POST"], }, });