Skip to content

Commit

Permalink
Enforce HSTS with netlify toml config
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien Duportal authored and traefiker committed Nov 19, 2019
1 parent a4b4259 commit ee35a5b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ base = "docs"

# Path relative to the "base" directory
command = "sh -x scripts/netlify-run.sh"

[[headers]]
# Define which paths this specific [[headers]] block will cover.
for = "/*"
[headers.values]
Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload"

0 comments on commit ee35a5b

Please sign in to comment.