mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Added trust proxy
This commit is contained in:
		| @@ -29,6 +29,7 @@ mongoose.connect(url); | |||||||
|  |  | ||||||
| app.engine('handlebars', hbs.engine); | app.engine('handlebars', hbs.engine); | ||||||
| app.set('view engine', 'handlebars'); | app.set('view engine', 'handlebars'); | ||||||
|  | app.set('trust proxy', '127.0.0.1'); | ||||||
| app.enable('view cache'); | app.enable('view cache'); | ||||||
| app.set('views', publicPath); | app.set('views', publicPath); | ||||||
| app.use(bodyParser.urlencoded({ | app.use(bodyParser.urlencoded({ | ||||||
|   | |||||||
| @@ -33,6 +33,7 @@ app.engine('handlebars', hbs.engine); | |||||||
| app.set('view engine', 'handlebars'); | app.set('view engine', 'handlebars'); | ||||||
| app.enable('view cache'); | app.enable('view cache'); | ||||||
| app.set('views', publicPath); | app.set('views', publicPath); | ||||||
|  | app.set('trust proxy', '127.0.0.1'); | ||||||
|  |  | ||||||
| var bodyParser = require('body-parser'); | var bodyParser = require('body-parser'); | ||||||
| var cookieParser = require("cookie-parser"); | var cookieParser = require("cookie-parser"); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user