Add CORP headers to media repo (#1197)
* Add CORP headers to media repo MSC: https://github.com/matrix-org/matrix-spec-proposals/pull/3828 * Write weird CSS rules to make added-in work inline in the CS spec Even though our content doesn't need 2 paragraphs, it's good to have the capability to render it in the future. * Remove test paragraph * Refine prose * spelling is key
This commit is contained in:
parent
b14759a27b
commit
afc0e6a026
4 changed files with 53 additions and 0 deletions
|
@ -19,6 +19,13 @@ When serving content, the server SHOULD provide a
|
|||
`Content-Security-Policy` header. The recommended policy is
|
||||
`sandbox; default-src 'none'; script-src 'none'; plugin-types application/pdf; style-src 'unsafe-inline'; object-src 'self';`.
|
||||
|
||||
{{% boxes/added-in-paragraph %}}
|
||||
{{< added-in v="1.4" >}} The server SHOULD additionally provide
|
||||
`Cross-Origin-Resource-Policy: cross-origin` when serving content to allow
|
||||
(web) clients to access restricted APIs such as `SharedArrayBuffer` when
|
||||
interacting with the media repository.
|
||||
{{% /boxes/added-in-paragraph %}}
|
||||
|
||||
#### Matrix Content (MXC) URIs
|
||||
|
||||
Content locations are represented as Matrix Content (MXC) URIs. They
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue