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

Fix static files BEFORE sessions #1090

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions config/lib/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,19 +228,19 @@ module.exports.init = function (db) {

// Initialize Express view engine
this.initViewEngine(app);

// Initialize Helmet security headers
this.initHelmetHeaders(app);

// Initialize modules static client routes, BEFORE session.
this.initModulesClientRoutes(app);

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

// Initialize Modules configuration
this.initModulesConfiguration(app);

// Initialize Helmet security headers
this.initHelmetHeaders(app);

// Initialize modules static client routes
this.initModulesClientRoutes(app);

// Initialize modules server authorization policies
this.initModulesServerPolicies(app);

Expand Down