Skip to content

Commit

Permalink
http (feature): Exclude X-XSRF-Token, X-Auth-Token from http logs by …
Browse files Browse the repository at this point in the history
…default (#3858)
  • Loading branch information
xerial authored Mar 5, 2025
1 parent 90474ae commit dc9821f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ object HttpLogger extends LogSupport {
def defaultExcludeHeaders: Set[String] = Set(
HttpHeader.Authorization,
HttpHeader.ProxyAuthorization,
HttpHeader.Cookie
HttpHeader.Cookie,
HttpHeader.SetCookie,
HttpHeader.SetCookie2,
"X-XSRF-Token",
"X-Auth-Token"
)

def emptyLogger(inputConfig: HttpLoggerConfig): HttpLogger = new HttpLogger {
Expand Down

0 comments on commit dc9821f

Please # to comment.