Skip to content

Commit 713ef4f

Browse files
committed
Improve security based on Mozilla Observatory test
https://observatory.mozilla.org/analyze.html?host=2017.keeprubyweird.com
1 parent 654f478 commit 713ef4f

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

static.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
{
2-
"root": "_site/",
32
"clean_urls": true,
4-
"https_only": true,
5-
"redirects": {
6-
"/code-of-conduct": {
7-
"url": "/conduct",
8-
"status": 301
3+
"headers": {
4+
"/**": {
5+
"Content-Security-Policy": "default-src 'self'; script-src https://static.ads-twitter.com https://www.google-analytics.com; img-src 'self' https://s3.amazonaws.com https://twitter.com https://pbs.twimg.com; font-src 'self' https://fonts.gstatic.com; style-src 'self' https://fonts.googleapis.com; frame-ancestors 'none';",
6+
"Strict-Transport-Security": "max-age=63072000; includeSubDomains; preload",
7+
"X-Content-Type-Options": "nosniff",
8+
"X-Frame-Options": "DENY",
9+
"X-XSS-Protection": "1; mode=block"
910
}
10-
}
11+
},
12+
"https_only": true,
13+
"redirects": {"/code-of-conduct": {"status": 301, "url": "/conduct"}},
14+
"root": "_site/"
1115
}

0 commit comments

Comments
 (0)