From bdbcc8df52356b49661f4f622a0428142bfa910d Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 21 Sep 2019 17:14:15 +0100 Subject: [PATCH] Move headers into separate file --- netlify.toml | 9 --------- static/_headers | 6 ++++++ 2 files changed, 6 insertions(+), 9 deletions(-) create mode 100644 static/_headers diff --git a/netlify.toml b/netlify.toml index 20c8734..ab43e05 100644 --- a/netlify.toml +++ b/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" diff --git a/static/_headers b/static/_headers new file mode 100644 index 0000000..0585b95 --- /dev/null +++ b/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