add CORS header
Some checks failed
/ build-container (push) Failing after 0s

This commit is contained in:
Finn 2024-07-06 00:54:32 -07:00
parent 615af0abb3
commit 841d30463a

View file

@ -64,6 +64,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Header().Add("Content-Type", stat.ContentType)
w.Header().Add("ETag", stat.ETag)
w.Header().Add("Access-Control-Allow-Origin", "*")
n, err := io.Copy(w, object)
if err != nil {