Send Access-Control-Allow-Origin header

This commit is contained in:
2015-10-28 02:27:44 +03:00
parent a01ae441bc
commit 8c587201f4
+1
View File
@@ -34,6 +34,7 @@ func (s *Server) History(rw http.ResponseWriter, _ *http.Request) {
return
}
rw.Header().Add("Access-Control-Allow-Origin", "*")
rw.Write(encoded)
}