mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-05 10:31:30 -06:00
Put back CORS directive (broke in change to ServeMux
This commit is contained in:
@@ -276,7 +276,10 @@ func (s *httpStoreServer) Run() {
|
||||
mux.HandleFunc(rootPath, http.HandlerFunc(s.handleRequestRoot))
|
||||
|
||||
srv := &http.Server{
|
||||
Handler: mux,
|
||||
Handler: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Add("Access-Control-Allow-Origin", "*")
|
||||
mux.ServeHTTP(w, r)
|
||||
}),
|
||||
ConnState: s.connState,
|
||||
}
|
||||
srv.Serve(l)
|
||||
|
||||
Reference in New Issue
Block a user