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

Commit

Permalink
Add CORP header to /download and /thumbnail (#3299)
Browse files Browse the repository at this point in the history
  • Loading branch information
S7evinK authored Jan 10, 2024
1 parent 57646d5 commit e342420
Showing 1 changed file with 1 addition and 0 deletions.
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

0 comments on commit e342420

Please sign in to comment.