mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 14:33:10 -06:00
Add CORP header to /download and /thumbnail
This commit is contained in:
parent
57646d5b86
commit
888f63af95
|
|
@ -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 a new issue