SylviaBABY commented on code in PR #6891:
URL: https://github.com/apache/apisix/pull/6891#discussion_r854752593


##########
docs/zh/latest/plugins/grpc-web.md:
##########
@@ -50,19 +53,35 @@ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 
'X-API-KEY: edd1c9f034335f13
 }'
 ```
 
+:::info IMPORTANT
+
+在使用 `gRPC Web` 代理插件时,路由必须使用**前缀匹配**模式(例如:`/*` 或 `/grpc/example/*`),因为 `gRPC 
Web` 客户端会在 URI 中传递 `proto` 
中声明的**包名称**、**服务接口名称**、**方法名称**等信息(例如:`/path/a6.RouteService/Insert`),
+
+因此在使用**绝对匹配**时将无法命中插件和提取 `proto` 信息。

Review Comment:
   ```suggestion
   在使用 `gRPC Web` 代理插件时,路由必须使用**前缀匹配**模式(例如:`/*` 或 `/grpc/example/*`),因为 `gRPC 
Web` 客户端会在 URI 中传递 `proto` 
中声明的**包名称**、**服务接口名称**、**方法名称**等信息(例如:`/path/a6.RouteService/Insert`),因此在使用**绝对匹配**时将无法命中插件和提取
 `proto` 信息。
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to