| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Browser git clients on protocol v2 (e.g. isomorphic-git) send a Git-Protocol: version=2 request header. Without it in Access-Control-Allow-Headers, the preflight fails and the smart-HTTP flow never starts cross-origin. Two callsites — the OPTIONS preflight handler and the streaming-response header block both replied with the same hard-coded list. Adding "Git-Protocol" to both. The frontend's protocolVersion: 1 workaround can go away once a server with this fix ships.
There was a problem hiding this comment.
Adds CORS support for Git smart-HTTP protocol v2 by allowing the Git-Protocol request header in the git handler responses, enabling browser-based git clients (e.g., isomorphic-git) to work without downgrading to protocol v1.
Changes:
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Closes #371.
Summary
Test plan