diff --git a/handler.go b/handler.go index 5d1d10d..6b9e3c8 100644 --- a/handler.go +++ b/handler.go @@ -144,6 +144,12 @@ func logDebugHeaders(r *http.Request) { if headers.Get("Authorization") != "" { headers.Set("Authorization", "***removed***") } + if headers.Get("Cookie") != "" { + headers.Set("Cookie", "***removed***") + } + if headers.Get("Cookie2") != "" { + headers.Set("Cookie2", "***removed***") + } zerolog.Ctx(r.Context()).Trace().Interface("headers", headers).Msg("Request headers") }