chore: add comment explaining uri header

This commit is contained in:
Stavros
2026-03-12 16:36:13 +02:00
parent 016a954963
commit b3de69e5d6

View File

@@ -90,6 +90,10 @@ func (controller *ProxyController) proxyHandler(c *gin.Context) {
tlog.App.Debug().Msg("Request identified as (most likely) coming from a non-browser client") tlog.App.Debug().Msg("Request identified as (most likely) coming from a non-browser client")
} }
// We are not marking the URI as a required header because it may be missing
// and we only use it for the auth enabled check which will simply not match
// if the header is missing. For deployments like Kubernetes, we use the
// x-original-uri header instead.
uri, ok := controller.getHeader(c, "x-forwarded-uri") uri, ok := controller.getHeader(c, "x-forwarded-uri")
if !ok { if !ok {