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

Add CORP header to /download and /thumbnail #3299

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mediaapi/routing/routing.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
Loading