Skip to content

Commit f7443c9

Browse files
authored
fix: correct netlify.toml (#11)
* fix: correct netlify.toml * fix: updated netlify.toml
1 parent 6d9fdd4 commit f7443c9

File tree

3 files changed

+36
-7
lines changed

3 files changed

+36
-7
lines changed

_headers

Lines changed: 0 additions & 7 deletions
This file was deleted.

cspell.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"FOSS",
3535
"Fossify",
3636
"fossifymessages",
37+
"geolocation",
3738
"Gitea",
3839
"gmaps",
3940
"Graphene",
@@ -69,6 +70,7 @@
6970
"Picsart",
7071
"prefs",
7172
"Profilemaker",
73+
"publickey",
7274
"pycache",
7375
"QKSMS",
7476
"quickweather",

netlify.toml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,37 @@
11
[build]
22
command = "mkdocs build --clean --site-dir build"
33
publish = "build"
4+
5+
[[headers]]
6+
for = "/*"
7+
[headers.values]
8+
Content-Security-Policy = """
9+
default-src 'self';
10+
script-src 'self' 'unsafe-inline';
11+
style-src 'self' 'unsafe-inline';
12+
img-src 'self' data:;
13+
connect-src 'self' https://api.github.com;
14+
font-src 'self' data: https://fonts.gstatic.com;
15+
form-action 'self';
16+
base-uri 'self';
17+
object-src 'none';
18+
frame-ancestors 'none';
19+
upgrade-insecure-requests;
20+
report-uri https://csp.netwk.pro/.netlify/functions/csp-report;
21+
report-to csp-endpoint;
22+
"""
23+
Report-To = """
24+
{
25+
"group": "csp-endpoint",
26+
"max_age": 10886400,
27+
"endpoints": [
28+
{ "url": "https://csp.netwk.pro/.netlify/functions/csp-report" }
29+
],
30+
"include_subdomains": true
31+
}
32+
"""
33+
Permissions-Policy = "fullscreen=(self), sync-xhr=(), camera=(), microphone=(), geolocation=(), clipboard-read=(), clipboard-write=(), payment=(), usb=(), hid=(), gamepad=(), serial=(), publickey-credentials-get=(), browsing-topics=()"
34+
X-Content-Type-Options = "nosniff"
35+
Referrer-Policy = "strict-origin-when-cross-origin"
36+
X-Frame-Options = "DENY"
37+
Strict-Transport-Security = "max-age=31536000; includeSubDomains"

0 commit comments

Comments
 (0)