Skip to content

Commit cf00f66

Browse files
author
Vladimir Kotal
committed
add comment
1 parent 9814595 commit cf00f66

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

opengrok-web/src/main/java/org/opengrok/web/api/v1/filter/IncomingFilter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ public void filter(final ContainerRequestContext context) {
116116
return;
117117
}
118118

119+
// In a reverse proxy environment the connection appears to be coming from localhost.
120+
// These request should really be using tokens.
119121
if (request.getHeader("X-Forwarded-For") != null || request.getHeader("Forwarded") != null) {
120122
logger.log(Level.FINEST, "denying request to {0} due to existence of forwarded header in the request",
121123
path);

0 commit comments

Comments
 (0)