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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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"]) {