diff --git a/server.js b/server.js index 5065073..68e53fa 100644 --- a/server.js +++ b/server.js @@ -19,7 +19,7 @@ const config = cfg.get(mode); app.use( cors({ - origin: [config.siteUrl, "localhost"], + origin: [config.siteUrl, "localhost", "http://fido2.app", "https://fido2.app", "fido2.app"], credentials: true, allowedHeaders: [ "Content-Type", @@ -50,7 +50,7 @@ app.use(compression()); const MongoStore = connectMongo(session); app.use( - session({ + session({ secret: process.env.SESSION_SECRET, resave: false, store: new MongoStore({ mongooseConnection: dbConnection.connection }),