mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-04 13:48:56 +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) {
|
module.exports = function(config) {
|
||||||
if (config.enableHelmet) {
|
if (config.enableHelmet) {
|
||||||
return helmet({
|
return helmet({
|
||||||
|
hsts: {
|
||||||
|
maxAge: 63072000,
|
||||||
|
includeSubDomains: true,
|
||||||
|
preload: true,
|
||||||
|
},
|
||||||
contentSecurityPolicy: {
|
contentSecurityPolicy: {
|
||||||
directives: {
|
directives: {
|
||||||
defaultSrc: [
|
defaultSrc: [
|
||||||
|
Loading…
Reference in New Issue
Block a user