srv.go: enable CORS (#322, #362, #437, #458)

This commit is contained in:
Igor Chubin 2020-06-02 13:21:40 +02:00
parent f31fff6f32
commit 91c48e8d14

View file

@ -60,6 +60,7 @@ func main() {
response := processRequest(r)
copyHeader(w.Header(), response.Header)
w.Header().Set("Access-Control-Allow-Origin", "*")
w.WriteHeader(response.StatusCode)
w.Write(response.Body)
})