DEV: Add support for GH Codespaces to ember proxy (#16581)
This commit is contained in:
parent
3c2e94ca59
commit
bcb22821fb
|
@ -212,7 +212,7 @@ async function buildFromBootstrap(proxy, baseURL, req, response, preload) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function handleRequest(proxy, baseURL, req, res) {
|
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;
|
req.headers.host = new URL(proxy).host;
|
||||||
|
|
||||||
if (req.headers["Origin"]) {
|
if (req.headers["Origin"]) {
|
||||||
|
|
Loading…
Reference in New Issue