Move headers into separate file

This commit is contained in:
Jake Howard 2019-09-21 17:14:15 +01:00
parent 38452f4b06
commit bdbcc8df52
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 6 additions and 9 deletions

View file

@ -6,12 +6,3 @@
HUGO_VERSION = "0.55.6"
NODE_ENV = "production"
NPM_CONFIG_PRODUCTION = "false"
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "SAMEORIGIN"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "same-origin"
Strict-Transport-Security = "max-age=5184000"

6
static/_headers Normal file
View file

@ -0,0 +1,6 @@
/*
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Referrer-Policy: same-origin
Strict-Transport-Security: max-age=5184000