Repository navigation
fix(zingod-grpc): expose grpc-retry-pushback-ms to gRPC-web clients - #23
Closed
danielgorgonha wants to merge 1 commit into
Closed
danielgorgonha wants to merge 1 commit into
danielgorgonha wants to merge 1 commit into
Conversation
A refusal is Trailers-Only, so its grpc-retry-pushback-ms travels as an HTTP header, and a browser can read a response header only if CORS lists it. The status headers were listed; the pushback was not, so a browser wallet could not honour the wait the status-codes chapter asks for. Assisted-by: Claude Code:claude-opus-5-5
Collaborator
|
Thanks @danielgorgonha I merged this in via #24 |
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.
Fixes: none (no issue open)
With
[serve] grpc_web = true, a refusal is Trailers-Only, so itsgrpc-retry-pushback-mstravels as an HTTP header. A browser reads a response header only if CORS lists it inAccess-Control-Expose-Headers, and the list hasgrpc-status,grpc-messageandgrpc-status-details-binbut not the pushback. So a browser wallet seesUNAVAILABLEand cannot honour the wait that book/src/wallets/status-codes.md asks for.cors()exposesgrpc-retry-pushback-ms, from the same constantadmission.rssends.We found it while reading the gRPC-web path for a browser client. #22 touches the same function; happy to rebase after it.
🤖 Generated with Claude Code