Repository navigation
Conversation
sameOriginHeaderClient adds a server's configured headers only to requests whose scheme, host (IDNA ASCII form), and port match the server URL, so a request that leaves that origin, such as a redirect, does not carry them; the first such request is logged at warn level with origins only. It never replaces a caller-set header or one that net/http manages. mcpBaseTransport picks the test-isolated transport or http.DefaultTransport for both header clients. Plugin HTTP servers use this client in the next change. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VpiVZBgFqiSdRKrH8dPSPT
This was referenced Nov 16, 2026
…ugins/08-mcp-same-origin-headers
…ugins/08-mcp-same-origin-headers
…ugins/08-mcp-same-origin-headers
…ugins/08-mcp-same-origin-headers
…/agent-plugins/08-mcp-same-origin-headers
…/agent-plugins/08-mcp-same-origin-headers
f0ssel
force-pushed
the
garrett/agent-plugins/08-mcp-same-origin-headers
branch
from
November 16, 2026 23:25
1ca24a8 to
396b134
Compare
…/agent-plugins/08-mcp-same-origin-headers
…/agent-plugins/08-mcp-same-origin-headers
This branch has not been deployed
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.
sameOriginHeaderClientadds a server's configured headers only to requests whose scheme, IDNA host, and port match the server URL, so a request that leaves that origin (for example a redirect) doesn't carry them. It never overrides caller-set or transport-managed headers.Plugin HTTP servers use it in the next PR. Part 1 of the #29325 split.
Stack (base
main, replaces #29321–#30577):Generated by Claude Code