From 9d4b829fb6d70cc86a4617b5d8781249f5b7b8a5 Mon Sep 17 00:00:00 2001 From: Eugene Bujak Date: Wed, 20 Feb 2019 10:40:18 +0300 Subject: [PATCH] Add Access-Control-Allow-Origin: * header to postinstall wrapper --- helpers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/helpers.go b/helpers.go index 3576f1a6..cf2d3598 100644 --- a/helpers.go +++ b/helpers.go @@ -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) } }