UNPKG

keystone

Version:

Web Application Framework and Admin GUI / Content Management System built on Express.js and Mongoose

9 lines (8 loc) 224 B
module.exports = function initTrustProxy (keystone, app) { // Process 'X-Forwarded-For' request header if (keystone.get('trust proxy') === true) { app.enable('trust proxy'); } else { app.disable('trust proxy'); } };