mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Add support for GH Codespaces to ember proxy (#16581)
This commit is contained in:
@@ -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"]) {
|
||||
|
||||
Reference in New Issue
Block a user