diff --git a/service/web.go b/service/web.go index c77eb45..7a69232 100644 --- a/service/web.go +++ b/service/web.go @@ -23,7 +23,7 @@ func (s *service) grpcWeb(opts ...grpcweb.Option) error { if !s.opts.grpcWeb { return nil } - h := grpcweb.WrapServer(s.server, opts...) + h := grpcweb.WrapServer(s.server, append(defaultWebOptions, opts...)...) for _, v := range grpcweb.ListGRPCResources(s.server) { if s.opts.grpcWebPrefix != "" { s.mux.Handle(s.opts.grpcWebPrefix+v, http.StripPrefix(s.opts.grpcWebPrefix, h))