From 0e167f5c245fefd5978f762d04298038ba6bd7a8 Mon Sep 17 00:00:00 2001 From: Audrius Butkevicius Date: Thu, 22 Oct 2015 21:44:50 +0100 Subject: [PATCH] Add CORS headers --- cmd/strelaypoolsrv/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/strelaypoolsrv/main.go b/cmd/strelaypoolsrv/main.go index c280bce23..8d63f63f7 100644 --- a/cmd/strelaypoolsrv/main.go +++ b/cmd/strelaypoolsrv/main.go @@ -163,6 +163,7 @@ func main() { } func handleRequest(w http.ResponseWriter, r *http.Request) { + w.Header().Set("Access-Control-Allow-Origin", "*") switch r.Method { case "GET": if limit(r.RemoteAddr, getLRUCache, getMut, getLimit, int64(getLimitBurst)) {