From 1b1812f9f52bd244d04859ef1b856ea59128f50c Mon Sep 17 00:00:00 2001 From: Oliver Akins Date: Mon, 7 Mar 2022 22:16:29 -0600 Subject: [PATCH] Use a config property for CORS headers --- server/src/websocket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/websocket.ts b/server/src/websocket.ts index b9f638c..7622870 100644 --- a/server/src/websocket.ts +++ b/server/src/websocket.ts @@ -44,7 +44,7 @@ export default async function() { io.listen(config.server.port, { cors: { - origin: ["http://localhost:3000"], + origin: config.server.cors.origins, credentials: true, } });