mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 13:04:10 +01:00
Add CORP headers to media repo
MSC: https://github.com/matrix-org/matrix-spec-proposals/pull/3828
This commit is contained in:
parent
b36d4eff7d
commit
bd66aa1c38
1
changelogs/client_server/newsfragments/1197.feature
Normal file
1
changelogs/client_server/newsfragments/1197.feature
Normal file
|
|
@ -0,0 +1 @@
|
|||
Add `Cross-Origin-Resource-Policy` (CORP) headers to media repository, as per [MSC3828](https://github.com/matrix-org/matrix-spec-proposals/pull/3828).
|
||||
|
|
@ -19,6 +19,12 @@ 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';`.
|
||||
|
||||
{{% added-in v="1.4" %}}
|
||||
|
||||
The server SHOULD additionally provide `Cross-Origin-Resource-Policy: cross-origin`
|
||||
when serving content to allow (web) clients access to APIs which interact
|
||||
with the media repository, such as `SharedArrayBuffer`.
|
||||
|
||||
#### Matrix Content (MXC) URIs
|
||||
|
||||
Content locations are represented as Matrix Content (MXC) URIs. They
|
||||
|
|
|
|||
Loading…
Reference in a new issue