mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-22 22:13:43 +01:00
Recommend a CSP rather than require it.
This commit is contained in:
parent
ec20c43220
commit
440841d1ff
1
changelogs/client_server/newsfragments/1600.feature
Normal file
1
changelogs/client_server/newsfragments/1600.feature
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Recommend that servers set a Content Security Policy for the content repository.
|
||||||
|
|
@ -33,10 +33,9 @@ recipient's local homeserver, which must first transfer the content from the
|
||||||
origin homeserver using the same API (unless the origin and destination
|
origin homeserver using the same API (unless the origin and destination
|
||||||
homeservers are the same).
|
homeservers are the same).
|
||||||
|
|
||||||
When serving content, the server MUST provide a ``Content-Security-Policy``
|
When serving content, the server SHOULD provide a ``Content-Security-Policy``
|
||||||
header. The policy may be more restrictive, however the minimum policy is
|
header. The recommended policy is ``default-src 'none'; script-src 'none';
|
||||||
``default-src 'none'; script-src 'none'; plugin-types application/pdf;
|
plugin-types application/pdf; style-src 'unsafe-inline'; object-src 'self';``.
|
||||||
style-src 'unsafe-inline'; object-src 'self';``.
|
|
||||||
|
|
||||||
Client behaviour
|
Client behaviour
|
||||||
----------------
|
----------------
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue