diff --git a/server/public.go b/server/public.go index 0c870c08..db7313ce 100644 --- a/server/public.go +++ b/server/public.go @@ -307,6 +307,7 @@ func (s *PublicServer) jsonHandler(handler func(r *http.Request, apiVersion int) data = jsonError{"Internal server error", http.StatusInternalServerError} } } + w.Header().Set("Access-Control-Allow-Origin", "*") w.Header().Set("Content-Type", "application/json; charset=utf-8") if e, isError := data.(jsonError); isError { w.WriteHeader(e.HTTPStatus)