This commit is contained in:
parent
615af0abb3
commit
841d30463a
1 changed files with 1 additions and 0 deletions
1
serve.go
1
serve.go
|
@ -64,6 +64,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
w.Header().Add("Content-Type", stat.ContentType)
|
w.Header().Add("Content-Type", stat.ContentType)
|
||||||
w.Header().Add("ETag", stat.ETag)
|
w.Header().Add("ETag", stat.ETag)
|
||||||
|
w.Header().Add("Access-Control-Allow-Origin", "*")
|
||||||
|
|
||||||
n, err := io.Copy(w, object)
|
n, err := io.Copy(w, object)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue