Commit ef983e69 authored by Attila Gazso's avatar Attila Gazso Committed by GitHub

fix: expose content-disposition HTTP header for CORS requests (#1283)

parent 9a2634d4
......@@ -382,6 +382,7 @@ func (s *server) downloadHandler(w http.ResponseWriter, r *http.Request, referen
}
w.Header().Set("Content-Length", fmt.Sprintf("%d", l))
w.Header().Set("Decompressed-Content-Length", fmt.Sprintf("%d", l))
w.Header().Set("Access-Control-Expose-Headers", "Content-Disposition")
if targets != "" {
w.Header().Set(TargetsRecoveryHeader, targets)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment