Skip to content

Commit

Permalink
Add basic security HTTP response headers. (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
koenrh authored Apr 18, 2019
1 parent aec1cce commit 7ab02e6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,12 @@
from = "/*"
to = "/api/404.html"
status = 404

[[headers]]
for = "/*"
[headers.values]
Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload"
X-Frame-Options = "deny"
X-Content-Type-Options = "nosniff"
X-XSS-Protection = "1; mode=block"
Referrer-Policy = "strict-origin-when-cross-origin"

0 comments on commit 7ab02e6

Please sign in to comment.