Add basic CSP support

This commit is contained in:
Literallie 2017-10-18 17:10:23 +02:00
parent a23048254d
commit ba183ce654
No known key found for this signature in database
GPG key ID: 7BE463C902ED152C
2 changed files with 35 additions and 0 deletions

View file

@ -13,6 +13,16 @@ module.exports = {
includeSubdomains: true,
preload: true
},
csp: {
enable: true,
reportUri: '',
directives: {
defaultSrc: ["'self'"],
scriptSrc: ["'self'"],
styleSrc: ["'self'", "'unsafe-inline'"],
fontSrc: ["'self'"]
}
},
protocolusessl: false,
usecdn: true,
allowanonymous: true,