MCPcopy Create free account
hub / github.com/isomorphic-git/isomorphic-git / corsProxify

Function corsProxify

src/managers/GitRemoteHTTP.js:14–17  ·  view source on GitHub ↗
(corsProxy, url)

Source from the content-addressed store, hash-verified

12// - https://jcubic.pl/proxy.php? <-- uses query string
13// - https://cors.isomorphic-git.org <-- uses path
14const corsProxify = (corsProxy, url) =>
15 corsProxy.endsWith('?')
16 ? `${corsProxy}${url}`
17 : `${corsProxy}/${url.replace(/^https?:\/\//, '')}`
18
19const updateHeaders = (headers, auth) => {
20 // Update the basic auth header

Callers 2

discoverMethod · 0.85
connectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…