Browse Source

Move headers into separate file

master
Jake Howard 2 years ago
parent
commit
bdbcc8df52
Signed by: theorangeone GPG Key ID: 57AFB45680EDD477
  1. 9
      netlify.toml
  2. 6
      static/_headers

9
netlify.toml

@ -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

@ -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
Loading…
Cancel
Save