From 42dfd5142ecde59240c7e63533ab21c3407ffd6b Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Mon, 2 Feb 2015 14:36:56 +0000 Subject: [PATCH] Remove Access-Control hack --- weaver/main.go | 1 - 1 file changed, 1 deletion(-) diff --git a/weaver/main.go b/weaver/main.go index ce0a8290..5a6b3075 100644 --- a/weaver/main.go +++ b/weaver/main.go @@ -146,7 +146,6 @@ func handleHttp(router *weave.Router) { io.WriteString(w, router.Status()) }) http.HandleFunc("/status-json", func(w http.ResponseWriter, r *http.Request) { - w.Header().Set("Access-Control-Allow-Origin", "*") json, _ := router.MarshalJSON() w.Write(json) })