diff --git a/server/api/GamesAPI.js b/server/api/GamesAPI.js index 090403a..834b523 100644 --- a/server/api/GamesAPI.js +++ b/server/api/GamesAPI.js @@ -34,7 +34,7 @@ if (process.env.NODE_ENV.trim() === 'production') { } router.post('/create', function (req, res) { - logger.trace('Received request to create new game: ' + JSON.stringify(req.body, null, 4)); + logger.debug('Received request to create new game: ' + JSON.stringify(req.body, null, 4)); const gameCreationPromise = gameManager.createGame(req.body, false); gameCreationPromise.then((result) => { if (result instanceof Error) { diff --git a/server/config/globals.js b/server/config/globals.js index 242b91e..47442dd 100644 --- a/server/config/globals.js +++ b/server/config/globals.js @@ -3,7 +3,7 @@ const globals = { ACCESS_CODE_LENGTH: 4, ACCESS_CODE_GENERATION_ATTEMPTS: 50, CLOCK_TICK_INTERVAL_MILLIS: 100, - CORS: process.env.NODE_ENV.trim() === 'development' + CORS: process.env.NODE_ENV?.trim() === 'development' ? { origin: '*', optionsSuccessStatus: 200