Add Access-Control-Allow-Origin: * header to postinstall wrapper

This commit is contained in:
Eugene Bujak 2019-02-20 10:40:18 +03:00
parent 1515c353f8
commit 9d4b829fb6
1 changed files with 1 additions and 0 deletions

View File

@ -164,6 +164,7 @@ func postInstall(handler func(http.ResponseWriter, *http.Request)) func(http.Res
http.Redirect(w, r, newURL.String(), http.StatusTemporaryRedirect)
return
}
w.Header().Set("Access-Control-Allow-Origin", "*")
handler(w, r)
}
}