TUN-9849: Add cf-proxy-* to control response headers

These headers will not be returned to the eyeball
This commit is contained in:
chungthuang
2025-10-28 09:17:05 -05:00
parent 114683f49e
commit 1367b967b3
2 changed files with 17 additions and 16 deletions
+2 -1
View File
@@ -53,7 +53,8 @@ var headerEncoding = base64.RawStdEncoding
func IsControlResponseHeader(headerName string) bool {
return strings.HasPrefix(headerName, ":") ||
strings.HasPrefix(headerName, "cf-int-") ||
strings.HasPrefix(headerName, "cf-cloudflared-")
strings.HasPrefix(headerName, "cf-cloudflared-") ||
strings.HasPrefix(headerName, "cf-proxy-")
}
// isWebsocketClientHeader returns true if the header name is required by the client to upgrade properly