DEV: Add support for GH Codespaces to ember proxy (#16581)

This commit is contained in:
Jarek Radosz
2022-04-28 14:46:59 +02:00
committed by GitHub
parent 3c2e94ca59
commit bcb22821fb

View File

@@ -212,7 +212,7 @@ async function buildFromBootstrap(proxy, baseURL, req, response, preload) {
}
async function handleRequest(proxy, baseURL, req, res) {
const originalHost = req.headers.host;
const originalHost = req.headers["x-forwarded-host"] || req.headers.host;
req.headers.host = new URL(proxy).host;
if (req.headers["Origin"]) {