feat: allow grpc web in non prefix based routes#12830
Merged
shreemaan-abhishek merged 3 commits intoJan 1, 2026
Merged
Conversation
Signed-off-by: Abhishek Choudhary <[email protected]>
Signed-off-by: Abhishek Choudhary <[email protected]>
shreemaan-abhishek
force-pushed
the
fix/fixed-route-path-grpc-web
branch
from
December 22, 2025 07:41
da5cfe2 to
1a3be84
Compare
Signed-off-by: Abhishek Choudhary <[email protected]>
shreemaan-abhishek
marked this pull request as ready for review
December 23, 2025 05:46
shreemaan-abhishek
requested review from
Baoyuantop,
bzp2010,
membphis and
nic-6443
December 23, 2025 05:47
nic-6443
approved these changes
Dec 26, 2025
membphis
approved these changes
Dec 30, 2025
AlinsRan
approved these changes
Dec 30, 2025
bzp2010
approved these changes
Dec 31, 2025
kayx23
reviewed
Jan 29, 2026
|
|
||
| :::info IMPORTANT | ||
|
|
||
| While using the `grpc-web` Plugin, always use a prefix matching pattern (`/*`, `/grpc/example/*`) for matching Routes. This is because the gRPC Web client passes the package name, the service interface name, the method name and other information in the proto in the URI. For example, `/path/a6.RouteService/Insert`. |
Member
There was a problem hiding this comment.
Need to remove this note from zh doc as well
wistefan
pushed a commit
to wistefan/apisix
that referenced
this pull request
Jun 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Previously we only allowed routes with prefix matched based URI to be used with grpc-web, this is a limitation are there are valid use cases where grpc-web can be used to directly use the path configured in the route. Example: the grpc-web client library structures URI exactly in the format specified in the route URI. This limitation has been removed in this PR.
Checklist