Skip to content

Commit bd66aa1

Browse files
committed
Add CORP headers to media repo
MSC: matrix-org/matrix-spec-proposals#3828
1 parent b36d4ef commit bd66aa1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add `Cross-Origin-Resource-Policy` (CORP) headers to media repository, as per [MSC3828](https://github.com/matrix-org/matrix-spec-proposals/pull/3828).

content/client-server-api/modules/content_repo.md

+6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ When serving content, the server SHOULD provide a
1919
`Content-Security-Policy` header. The recommended policy is
2020
`sandbox; default-src 'none'; script-src 'none'; plugin-types application/pdf; style-src 'unsafe-inline'; object-src 'self';`.
2121

22+
{{% added-in v="1.4" %}}
23+
24+
The server SHOULD additionally provide `Cross-Origin-Resource-Policy: cross-origin`
25+
when serving content to allow (web) clients access to APIs which interact
26+
with the media repository, such as `SharedArrayBuffer`.
27+
2228
#### Matrix Content (MXC) URIs
2329

2430
Content locations are represented as Matrix Content (MXC) URIs. They

0 commit comments

Comments
 (0)