Add CORS headers

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-04-29 18:50:18 +02:00
parent fe3a347c07
commit f2491f24e0
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -86,5 +86,8 @@ func handleScriptCall(w http.ResponseWriter, r *http.Request) {
return
}
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("Access-Control-Allow-Method", "*")
io.Copy(w, stdout)
}