-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
26 lines (21 loc) · 880 Bytes
/
netlify.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[build]
command = "make build"
publish = "dist"
[build.environment]
HUGO_VERSION = "0.54.0"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
HUGO_PLATFORM = "Linux-64bit"
[[headers]]
for = "/*"
[headers.value]
# Block site from being framed with X-Frame-Options and CSP
X-Frame-Options = "DENY"
# Prevent browsers from incorrectly detecting non-scripts as scripts
X-Content-Type-Options = "nosniff"
# Don't load any resource type not explicitly enabled
# Disable plugins like Flash or Silverlight
# Load images, scripts, stylesheets and fonts from self
# Send reports to report-uri.io
Content-Security-Policy = "default-src 'none'; object-src 'none'; img-src 'self'; script-src 'self'; style-src 'self'; font-src 'self'; report-uri https://<report-uri-subdomain>.report-uri.io/r/default/csp/enforce;"
X-XSS-Protection = "1; mode=block"