Skip to content
This repository was archived by the owner on Nov 25, 2024. It is now read-only.

Commit e342420

Browse files
authored
Add CORP header to /download and /thumbnail (#3299)
Part of #3222 matrix-org/matrix-spec-proposals#3828
1 parent 57646d5 commit e342420

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mediaapi/routing/routing.go

+1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ func makeDownloadAPI(
123123

124124
// Set internal headers returned regardless of the outcome of the request
125125
util.SetCORSHeaders(w)
126+
w.Header().Set("Cross-Origin-Resource-Policy", "cross-origin")
126127
// Content-Type will be overridden in case of returning file data, else we respond with JSON-formatted errors
127128
w.Header().Set("Content-Type", "application/json")
128129

0 commit comments

Comments
 (0)