Remove Access-Control hack

This commit is contained in:
Bryan Boreham committed 2015-02-02 14:36:56 +00:00
1 parent c7af02776f
commit 42dfd5142e
1 file changed
-1
-1
View File
@@ -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)
})