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:
parent
ed71ad423b
commit
6f41332055
@ -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: [
|
||||
|
Loading…
Reference in New Issue
Block a user