Skip to content

Commit

Permalink
Add CORP headers to media repo
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Aug 2, 2022
1 parent b36d4ef commit bd66aa1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/1197.feature
Original file line number Diff line number Diff line change
@@ -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).
6 changes: 6 additions & 0 deletions content/client-server-api/modules/content_repo.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd66aa1

Please sign in to comment.