From b3de69e5d6e4877555849ac66e42e31d2e638262 Mon Sep 17 00:00:00 2001 From: Stavros Date: Thu, 12 Mar 2026 16:36:13 +0200 Subject: [PATCH] chore: add comment explaining uri header --- internal/controller/proxy_controller.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/controller/proxy_controller.go b/internal/controller/proxy_controller.go index d146f85..60e117d 100644 --- a/internal/controller/proxy_controller.go +++ b/internal/controller/proxy_controller.go @@ -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") } + // 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") if !ok {