Skip to content
This repository was archived by the owner on Jul 3, 2021. It is now read-only.
This repository was archived by the owner on Jul 3, 2021. It is now read-only.

Allow rewriting Response's Location header #76

Closed
@datvm

Description

@datvm

Scenario:

  • User enters https://www.example.com/foo (Server1)

  • Server1 proxies the request to https://localhost:123/foo (Server2)

  • Server2 responds with 202 or 301 with header Location: https://localhost:123/bar.

  • Server1 forwards that header back, which when redirected, user is no longer accessing Server1.

Suggestion: add an option to allow rewriting Location header if it is present and is absolute Uri and the origin (scheme, host and port) is same as Server2's.

(I am working on it, going to create a pull request)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions