mirror of
https://github.com/coder/code-server.git
synced 2026-05-05 12:05:18 +02:00
Allow {{host}} and {{port}} in domain proxy (#6225)
This commit is contained in:
committed by
GitHub
parent
2109d1cf6a
commit
0703ef008c
@@ -373,7 +373,7 @@ export function authenticateOrigin(req: express.Request): void {
|
||||
/**
|
||||
* Get the host from headers. It will be trimmed and lowercased.
|
||||
*/
|
||||
function getHost(req: express.Request): string | undefined {
|
||||
export function getHost(req: express.Request): string | undefined {
|
||||
// Honor Forwarded if present.
|
||||
const forwardedRaw = getFirstHeader(req, "forwarded")
|
||||
if (forwardedRaw) {
|
||||
|
||||
Reference in New Issue
Block a user