From 2916a61b3b0c5cb1eb060722d26b7cc681999c15 Mon Sep 17 00:00:00 2001 From: Adphi Date: Thu, 30 Sep 2021 18:10:12 +0200 Subject: [PATCH] use default unsecured grpc web options --- service/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))