Remove Xforwarded header in Membrane to client

59 views
Skip to first unread message

Vinod KumaR

unread,
Nov 1, 2017, 12:17:23 PM11/1/17
to membrane-monitor
Hi

Is there any way to remove Xforwarded entry in Membrane request to client service?

Regards, Vinod.

Tobias Polley

unread,
Jan 17, 2018, 3:22:18 AM1/17/18
to membrane-monitor
Hi Vinod,

the X-Forwarded-For and X-Forwarded-Proto headers are added very early in the interceptor chain. Putting

<request>
<groovy>
exc.request.header.removeFields("X-Forwarded-For");
exc.request.header.removeFields("X-Forwarded-Proto");
</groovy>
</request>

almost anywhere simply removes them again.

Best, Tobias

Vinod KumaR

unread,
Jun 2, 2018, 3:14:35 AM6/2/18
to membrane-monitor
Many Thanks Tobias.
Reply all
Reply to author
Forward
0 new messages