bookmarklet: use dynamic host and scheme from request headers

This commit is contained in:
blankie 2026-06-14 07:43:26 +00:00
parent a9cf9fb096
commit 8214f241fa
3 changed files with 13 additions and 9 deletions

View file

@ -125,6 +125,7 @@ class GatewayHandler(BaseHTTPRequestHandler):
"body": body,
"cookies": cookies,
"gateway_host": self.headers.get("Host", f"localhost:{GATEWAY_PORT}"),
"scheme": self.headers.get("X-Forwarded-Proto", "http"),
}
try: