mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-09 13:04:09 +01:00
Specify the minimum CSP for media
Fixes https://github.com/matrix-org/matrix-doc/issues/1066
This commit is contained in:
parent
e401b7255c
commit
ec20c43220
|
|
@ -33,6 +33,11 @@ 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``
|
||||||
|
header. The policy may be more restrictive, however the minimum policy is
|
||||||
|
``default-src 'none'; script-src 'none'; plugin-types application/pdf;
|
||||||
|
style-src 'unsafe-inline'; object-src 'self';``.
|
||||||
|
|
||||||
Client behaviour
|
Client behaviour
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue