Send Access-Control-Allow-Origin header
This commit is contained in:
parent
a01ae441bc
commit
8c587201f4
|
@ -34,6 +34,7 @@ func (s *Server) History(rw http.ResponseWriter, _ *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
rw.Header().Add("Access-Control-Allow-Origin", "*")
|
||||
rw.Write(encoded)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue