Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: skip origin check (#6515)

Liu Ji01538ab213f2
diff --git a/backend/server/server.go b/backend/server/server.go
index 389abeb357..ac32fb5ab4 100644
--- a/backend/server/server.go
+++ b/backend/server/server.go
@@ -669,6 +669,9 @@ func NewServer(ctx context.Context, profile config.Profile) (*Server, error) {
return true
}),
grpcweb.WithWebsockets(true),
+ grpcweb.WithWebsocketOriginFunc(func(req *http.Request) bool {
+ return true
+ }),
}
wrappedGrpc := grpcweb.WrapServer(s.grpcServer, options...)
e.Any("/bytebase.v1.*", echo.WrapHandler(wrappedGrpc))