Send Access-Control-Allow-Origin header

This commit is contained in:
Gregory Eremin 2015-10-28 02:27:44 +03:00
parent a01ae441bc
commit 8c587201f4

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)
}