Skip to content

Commit

Permalink
Http proxy / don't copy X-Forwarded headers to the proxied request
Browse files Browse the repository at this point in the history
  • Loading branch information
josegar74 committed Oct 10, 2023
1 parent d73e099 commit d9f09b6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ public class URITemplateProxyServlet extends org.mitre.dsmiley.httpproxy.URITemp
"Vary",
"Access-Control-Allow-Credentials",
"Strict-Transport-Security",
"Etag"};
"Etag",
"X-Forwarded-Host",
"X-Forwarded-Proto",
"X-Forwarded-Prefix"};
for (String header : headers) {
hopByHopHeaders.addHeader(new BasicHeader(header, null));
}
Expand Down

0 comments on commit d9f09b6

Please sign in to comment.