diff --git a/lobby.js b/lobby.js index 4b7e085..1feb943 100644 --- a/lobby.js +++ b/lobby.js @@ -12,6 +12,8 @@ module.exports.Lobby=function(http, config) var app = express(); var rooms = {}; +app.set('trust proxy', true); + app.use(cors()); app.use('/', express.static(__dirname + '/public'));