Add Access-Control-Allow-Origin: * header to postinstall wrapper
This commit is contained in:
parent
1515c353f8
commit
9d4b829fb6
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue