| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Apply the browser CORS contract at the root router so authentication, metadata, error, and fallback responses retain the required headers. Register protected-resource metadata for every MCP route variant and verify each challenge round trip.\n\nRefs #3095\n\nCo-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Centralizes CORS handling for all HTTP routes and expands OAuth protected-resource discovery across every MCP route variant.
Changes:
| File | Description |
|---|---|
| pkg/http/server.go | Centralizes HTTP router construction and CORS handling. |
| pkg/http/server_test.go | Tests CORS and OAuth metadata route contracts. |
| pkg/http/oauth/oauth.go | Adds missing protected-resource route variants. |
| pkg/http/oauth/oauth_test.go | Verifies the complete metadata route matrix. |
| pkg/http/middleware/cors.go | Preserves existing exposed response headers. |
| pkg/http/middleware/cors_test.go | Tests preflight and exposed-header behavior. |
| docs/streamable-http.md | Documents OAuth discovery and browser proxy requirements. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
Prevent unrecognized protected-resource metadata paths from falling through to the MCP root mount and producing recursive authentication challenges.\n\nRefs #3095\n\nCo-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
Summary
Validation
Hosted dependencies
Addresses the OSS server portion of #3095.