-
Notifications
You must be signed in to change notification settings - Fork 591
Expand file tree
/
Copy pathserver.toml
More file actions
91 lines (88 loc) · 2.79 KB
/
Copy pathserver.toml
File metadata and controls
91 lines (88 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# https://gohugo.io/getting-started/configuration/#configure-server
# headers must be the same than in netlify.toml
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "no-referrer"
Permissions-Policy = """
geolocation=(),
midi=(),
notifications=(),
push=(),
sync-xhr=(),
microphone=(),
camera=(),
magnetometer=(),
gyroscope=(),
speaker=(self),
vibrate=(),
fullscreen=(self),
interest-cohort=()
"""
# "style-src unsafe-inline:" Cf https://github.com/letsencrypt/website/issues/950
# "connect-src https://d4twhgtvn0ff5.cloudfront.net/" for stats graphs
# "img-src data: blob:" is for Plotly download feature
# "script-src unsafe-eval unsafe-inline data:": For Google Analytics
# "form-action" is NOT set, so it allows everything (it doesn't default to default-src). If restricted, It must allow at least www.paypal.com and its redirects
Content-Security-Policy = """
default-src 'none';
font-src 'self' https://fonts.gstatic.com;
frame-ancestors 'self' https://isrg.formstack.com;
style-src 'unsafe-inline' 'self';
style-src-elem 'self' https://fonts.googleapis.com;
script-src 'unsafe-eval' 'unsafe-inline' 'self' data:
https://www.google-analytics.com
https://www.googleadservices.com
https://www.googletagmanager.com
https://googleads.g.doubleclick.net
https://donorbox.org
https://js.stripe.com/v3/
https://sdks.shopifycdn.com
https://www.paypal.com
;
img-src 'self' data: blob:
https://www.google-analytics.com
https://www.paypal.com
https://www.paypalobjects.com
https://ak2s.abmr.net
https://ak1s.abmr.net
https://www.google.com
https://cdn.shopify.com
https://v.shopify.com
;
frame-src
https://donorbox.org
https://www.youtube.com
https://www.youtube-nocookie.com
https://bid.g.doubleclick.net
https://js.stripe.com/v3/
https://js.stripe.com/v2/
https://www.paypal.com
https://outreach.abetterinternet.org
;
connect-src 'self'
https://d4twhgtvn0ff5.cloudfront.net/
https://letsencrypt-merch.myshopify.com
;
"""
[[headers]]
for = "/repository"
[headers.values]
# For WebTrust Audits
# Cf https://github.com/letsencrypt/website/pull/976
Referrer-Policy = "strict-origin"
[[headers]]
for = "/:lang/repository"
[headers.values]
# For WebTrust Audits
# Cf https://github.com/letsencrypt/website/pull/976
Referrer-Policy = "strict-origin"
[[headers]]
for = "/certs/*.pem"
[headers.values]
# Because Netlify defaults to "application/x-x509-ca-cert", which is for DER.
Content-Type = "application/x-pem-file"
Content-Disposition = "inline"