diff options
author | Christoph (Sheogorath) Kern | 2018-03-14 22:10:23 +0100 |
---|---|---|
committer | GitHub | 2018-03-14 22:10:23 +0100 |
commit | 9cbe03d8a8eb503170b7b481e97c37d66447dd37 (patch) | |
tree | 84ac2123169e1bf3e0a1cad6ab2c35f357583170 /lib/config | |
parent | 976657dc218d594a96187a6037b8323c851cd517 (diff) | |
parent | efa490a50f5849205645384ee7910764bf929794 (diff) |
Merge pull request #761 from SISheogorath/feature/reportURI
Add config option for report URI in CSP
Diffstat (limited to 'lib/config')
-rw-r--r-- | lib/config/default.js | 3 | ||||
-rw-r--r-- | lib/config/environment.js | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/config/default.js b/lib/config/default.js index 06e887f4..7407ec60 100644 --- a/lib/config/default.js +++ b/lib/config/default.js @@ -18,7 +18,8 @@ module.exports = { directives: { }, addDefaults: true, - upgradeInsecureRequests: 'auto' + upgradeInsecureRequests: 'auto', + reportURI: undefined }, protocolusessl: false, usecdn: true, diff --git a/lib/config/environment.js b/lib/config/environment.js index 403c7d75..2d0b520a 100644 --- a/lib/config/environment.js +++ b/lib/config/environment.js @@ -15,7 +15,8 @@ module.exports = { preload: toBooleanConfig(process.env.HMD_HSTS_PRELOAD) }, csp: { - enable: toBooleanConfig(process.env.HMD_CSP_ENABLE) + enable: toBooleanConfig(process.env.HMD_CSP_ENABLE), + reportURI: process.env.HMD_CSP_REPORTURI }, protocolusessl: toBooleanConfig(process.env.HMD_PROTOCOL_USESSL), alloworigin: toArrayConfig(process.env.HMD_ALLOW_ORIGIN), |