Skip to content

Commit b3de69e

Browse files
committed
chore: add comment explaining uri header
1 parent 016a954 commit b3de69e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

internal/controller/proxy_controller.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ func (controller *ProxyController) proxyHandler(c *gin.Context) {
9090
tlog.App.Debug().Msg("Request identified as (most likely) coming from a non-browser client")
9191
}
9292

93+
// We are not marking the URI as a required header because it may be missing
94+
// and we only use it for the auth enabled check which will simply not match
95+
// if the header is missing. For deployments like Kubernetes, we use the
96+
// x-original-uri header instead.
9397
uri, ok := controller.getHeader(c, "x-forwarded-uri")
9498

9599
if !ok {

0 commit comments

Comments
 (0)