Skip to content

Commit

Permalink
Add missing Access-Control-Allow-Origin header for get request
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonford committed Dec 28, 2022
1 parent 4b44e10 commit 6fa4712
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fakestorage/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,7 @@ func (s *Server) downloadObject(w http.ResponseWriter, r *http.Request) {
for name, value := range obj.Metadata {
w.Header().Set("X-Goog-Meta-"+name, value)
}
w.Header().Set("Access-Control-Allow-Origin", "*")

if ranged && !satisfiable {
status = http.StatusRequestedRangeNotSatisfiable
Expand Down

0 comments on commit 6fa4712

Please sign in to comment.