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
Description
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
Labels
No labels