mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-24 12:41:34 +00:00
Add CORP header to /download
and /thumbnail
(#3299)
Part of #3222 https://github.com/matrix-org/matrix-spec-proposals/pull/3828
This commit is contained in:
parent
57646d5b86
commit
e34242008b
@ -123,6 +123,7 @@ func makeDownloadAPI(
|
||||
|
||||
// Set internal headers returned regardless of the outcome of the request
|
||||
util.SetCORSHeaders(w)
|
||||
w.Header().Set("Cross-Origin-Resource-Policy", "cross-origin")
|
||||
// Content-Type will be overridden in case of returning file data, else we respond with JSON-formatted errors
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user