mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-03-13 10:12:06 +00:00
chore: add comment explaining uri header
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user