We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea0e5ad commit 3903e89Copy full SHA for 3903e89
src/stac_auth_proxy/handlers/reverse_proxy.py
@@ -30,6 +30,8 @@ def __post_init__(self):
30
async def proxy_request(self, request: Request, *, stream=False) -> httpx.Response:
31
"""Proxy a request to the upstream STAC API."""
32
headers = MutableHeaders(request.headers)
33
+ headers.setdefault("X-Forwarded-For", request.client.host)
34
+ headers.setdefault("X-Forwarded-Host", request.url.hostname)
35
36
# https://github.com/fastapi/fastapi/discussions/7382#discussioncomment-5136466
37
rp_req = self.client.build_request(
0 commit comments