Fix recursion masked reverse_proxy #1

Open
opened 2026-07-08 14:11:39 +02:00 by malasaur · 0 comments
Owner

Masked reverse_proxy (reverse_proxy: source => destination) is supposed to act as a reverse_proxy that tries, by forwarding and rewriting headers, to make the proxy seamless and avoid any external redirects that would result in the browser moving to a different URL.
Right now, masked reverse_proxy fails due to recursion. The destination service returns a redirect, using the same domain thanks to the header rewrite, but the header that's sent back is not rewritten, and as such this results in MProxy adding the path to the URL again.

Masked reverse_proxy (`reverse_proxy: source => destination`) is supposed to act as a reverse_proxy that tries, by forwarding and rewriting headers, to make the proxy seamless and avoid any external redirects that would result in the browser moving to a different URL. Right now, masked reverse_proxy fails due to recursion. The destination service returns a redirect, using the same domain thanks to the header rewrite, but the header that's sent back is not rewritten, and as such this results in MProxy adding the path to the URL again.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
malasaur/proxy#1
No description provided.