From: Scott Worley Date: Sun, 19 Aug 2012 16:54:53 +0000 (-0700) Subject: /speak requests are permitted cross-origin X-Git-Url: http://git.scottworley.com/reliable-chat/commitdiff_plain/d88cc9a81cf2394c79117f4d6a2a58690c56d3d8?ds=sidebyside /speak requests are permitted cross-origin This serves only to quite browser console error messages. The request is the action, and speaking was working even though the browser was denying the empty response to the client. --- diff --git a/server/server.go b/server/server.go index c3bb593..963931f 100644 --- a/server/server.go +++ b/server/server.go @@ -184,6 +184,7 @@ func start_server(store Store) { now(), r.FormValue("id"), r.FormValue("text")} + w.Header().Add("Access-Control-Allow-Origin", "*") }) http.HandleFunc("/robots.txt", func(w http.ResponseWriter, r *http.Request) {