-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from freelawproject/headers
feat(headers): Add security headers
- Loading branch information
Showing
2 changed files
with
20 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[[headers]] | ||
for = "/*" | ||
[headers.values] | ||
Strict-Transport-Security = 'max-age=63072000; includeSubdomains; preload' | ||
|
||
X-Frame-Options = "DENY" | ||
X-Content-Type-Options = "nosniff" | ||
Referrer-Policy = 'same-origin' | ||
|
||
# This one only applies to older browsers, and getting good information about what it does it hard. | ||
# It is superceded by CSP headers, but still useful in old browsers. | ||
X-XSS-Protection = "1; mode=block" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters