From 2f7c589c8808152c374e7e34d7807d51ce651b0e Mon Sep 17 00:00:00 2001 From: s-ol Date: Fri, 14 Jan 2022 15:57:28 +0100 Subject: small fixes --- server/main.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'server') diff --git a/server/main.ts b/server/main.ts index 7584d86..9dc6191 100644 --- a/server/main.ts +++ b/server/main.ts @@ -15,10 +15,7 @@ const DEBUG = process.env.NODE_ENV ? process.env.NODE_ENV !== 'production' : PUB const app = express(); if (DEBUG) { - app.use(cors({ - origin: 'http://localhost:8080', - credentials: true, - })); + app.use(cors({ origin: true, credentials: true })); app.use(express.static('../client/dist/')); } else { app.use(express.static('static')); -- cgit v1.2.3