From 91c48e8d14550fe6df5386e507b0a59f63dceda4 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Tue, 2 Jun 2020 13:21:40 +0200 Subject: [PATCH] srv.go: enable CORS (#322, #362, #437, #458) --- cmd/srv.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/srv.go b/cmd/srv.go index 603391b..aae32d5 100644 --- a/cmd/srv.go +++ b/cmd/srv.go @@ -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) })