Mercurial > repos > other > Puppet
changeset 174:1457b5365c79 puppet-3.6
Add extra headers for improved security practice
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 03 Mar 2018 14:20:06 +0000 |
parents | c72d2b5f9be2 |
children | c76ba5e3685f |
files | modules/website/files/zzz-0-custom.conf |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/modules/website/files/zzz-0-custom.conf Sat Feb 17 20:59:37 2018 +0000 +++ b/modules/website/files/zzz-0-custom.conf Sat Mar 03 14:20:06 2018 +0000 @@ -87,4 +87,10 @@ </LimitExcept> </Location> -ServerTokens Minor \ No newline at end of file +ServerTokens Minor + +Header always set Referrer-Policy "no-referrer-when-downgrade" +Header always set Expect-CT "max-age=0, report-uri='https://ibboard.report-uri.io/r/default/ct/reportOnly'" +Header always set Content-Security-Policy "upgrade-insecure-requests" +Header always set Content-Security-Policy-Report-Only "default-src 'none'; img-src 'self'; script-src 'self'; style-src 'self'" +#; report-uri https://ibboard.report-uri.com/r/d/csp/reportOnly" \ No newline at end of file