Move headers into separate file
This commit is contained in:
parent
38452f4b06
commit
bdbcc8df52
2 changed files with 6 additions and 9 deletions
|
@ -6,12 +6,3 @@
|
||||||
HUGO_VERSION = "0.55.6"
|
HUGO_VERSION = "0.55.6"
|
||||||
NODE_ENV = "production"
|
NODE_ENV = "production"
|
||||||
NPM_CONFIG_PRODUCTION = "false"
|
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
6
static/_headers
Normal 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
|
Reference in a new issue