mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-06 03:34:09 +01:00
Add comment to explain why unsafe-inline is needed
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
parent
e179fd4546
commit
cea4844b22
|
|
@ -127,6 +127,8 @@ sidebar_menu_compact = true
|
||||||
[[server.headers]]
|
[[server.headers]]
|
||||||
for = '/**'
|
for = '/**'
|
||||||
[server.headers.values]
|
[server.headers.values]
|
||||||
|
# `style-src 'unsafe-inline'` is needed to correctly render the maths in the Olm spec:
|
||||||
|
# https://github.com/KaTeX/KaTeX/issues/4096
|
||||||
Content-Security-Policy = "default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self'; img-src 'self' data:; connect-src 'self'; font-src 'self' data:; media-src 'self'; child-src 'self'; form-action 'self'; object-src 'self'"
|
Content-Security-Policy = "default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self'; img-src 'self' data:; connect-src 'self'; font-src 'self' data:; media-src 'self'; child-src 'self'; form-action 'self'; object-src 'self'"
|
||||||
X-XSS-Protection = "1; mode=block"
|
X-XSS-Protection = "1; mode=block"
|
||||||
X-Content-Type-Options = "nosniff"
|
X-Content-Type-Options = "nosniff"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue