Add CORP header to /download and /thumbnail

This commit is contained in:
Till Faelligen 2024-01-10 08:56:52 +01:00
parent 57646d5b86
commit 888f63af95
No known key found for this signature in database
GPG key ID: ACCDC9606D472758

View file

@ -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")