Skip to content

Review proxy headers #34

@alukach

Description

@alukach

We should review the recommended best-practices with regards to operating a proxy rather than a standard API.

For example:

Resources:


Current headers applied here:

Request:

headers = MutableHeaders(request.headers)
headers.setdefault("X-Forwarded-For", request.client.host)
headers.setdefault("X-Forwarded-Host", request.url.hostname)

Response:

rp_resp.headers["X-Upstream-Time"] = f"{proxy_time:.3f}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions