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

pull/461/head
Igor Chubin 4 years ago
parent f31fff6f32
commit 91c48e8d14

@ -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)
})

Loading…
Cancel
Save