Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.

Commit 4701722

Browse files
committed
fix(core): Serve static files without session init
Fixes #1089
1 parent 43c7041 commit 4701722

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

config/lib/express.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,19 +228,19 @@ module.exports.init = function (db) {
228228

229229
// Initialize Express view engine
230230
this.initViewEngine(app);
231+
232+
// Initialize Helmet security headers
233+
this.initHelmetHeaders(app);
234+
235+
// Initialize modules static client routes, before session!
236+
this.initModulesClientRoutes(app);
231237

232238
// Initialize Express session
233239
this.initSession(app, db);
234240

235241
// Initialize Modules configuration
236242
this.initModulesConfiguration(app);
237243

238-
// Initialize Helmet security headers
239-
this.initHelmetHeaders(app);
240-
241-
// Initialize modules static client routes
242-
this.initModulesClientRoutes(app);
243-
244244
// Initialize modules server authorization policies
245245
this.initModulesServerPolicies(app);
246246

0 commit comments

Comments
 (0)