mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	fix: remove duplicate configuration for helmet-hsts
This commit is contained in:
		| @@ -164,9 +164,7 @@ function setupExpressApp(app) { | |||||||
| 		saveUninitialized: nconf.get('sessionSaveUninitialized') || false, | 		saveUninitialized: nconf.get('sessionSaveUninitialized') || false, | ||||||
| 	})); | 	})); | ||||||
|  |  | ||||||
| 	app.use(helmet({ | 	app.use(helmet()); | ||||||
| 		hsts: !!meta.config['hsts-enabled'], |  | ||||||
| 	})); |  | ||||||
| 	app.use(helmet.referrerPolicy({ policy: 'strict-origin-when-cross-origin' })); | 	app.use(helmet.referrerPolicy({ policy: 'strict-origin-when-cross-origin' })); | ||||||
| 	if (meta.config['hsts-enabled']) { | 	if (meta.config['hsts-enabled']) { | ||||||
| 		app.use(helmet.hsts({ | 		app.use(helmet.hsts({ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user