1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-26 13:48:33 +02:00

fix: update helmet config

This commit is contained in:
Ivar Conradi Østhus 2020-09-18 11:30:30 +02:00
parent ed71ad423b
commit 6f41332055

View File

@ -3,6 +3,11 @@ const helmet = require('helmet');
module.exports = function(config) {
if (config.enableHelmet) {
return helmet({
hsts: {
maxAge: 63072000,
includeSubDomains: true,
preload: true,
},
contentSecurityPolicy: {
directives: {
defaultSrc: [