Remove Access-Control hack
This commit is contained in:
1 parent
c7af02776f
commit
42dfd5142e
1 file changed
-1
@@ -146,7 +146,6 @@ func handleHttp(router *weave.Router) {
|
|||||||
io.WriteString(w, router.Status())
|
io.WriteString(w, router.Status())
|
||||||
})
|
})
|
||||||
http.HandleFunc("/status-json", func(w http.ResponseWriter, r *http.Request) {
|
http.HandleFunc("/status-json", func(w http.ResponseWriter, r *http.Request) {
|
||||||
w.Header().Set("Access-Control-Allow-Origin", "*")
|
|
||||||
json, _ := router.MarshalJSON()
|
json, _ := router.MarshalJSON()
|
||||||
w.Write(json)
|
w.Write(json)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user