Add skip-auth-preflight flag to allow OPTIONS requests through proxy (#7284)

This commit is contained in:
helgehatt
2025-04-14 21:27:02 +02:00
committed by GitHub
parent 9045919d2b
commit bbf2e24648
6 changed files with 34 additions and 1 deletions

View File

@@ -163,6 +163,9 @@ export const runCodeServer = async (
logger.info(` - ${plural(args["proxy-domain"].length, "Proxying the following domain")}:`)
args["proxy-domain"].forEach((domain) => logger.info(` - ${domain}`))
}
if (args["skip-auth-preflight"]) {
logger.info(" - Skipping authentication for preflight requests")
}
if (process.env.VSCODE_PROXY_URI) {
logger.info(`Using proxy URI in PORTS tab: ${process.env.VSCODE_PROXY_URI}`)
}