diff --git a/routstr/core/middleware.py b/routstr/core/middleware.py index 4307cb9d..1810f055 100644 --- a/routstr/core/middleware.py +++ b/routstr/core/middleware.py @@ -55,7 +55,16 @@ class LoggingMiddleware(BaseHTTPMiddleware): "headers": { k: v for k, v in request.headers.items() - if k.lower() not in ["authorization", "x-cashu", "cookie"] + if k.lower() + not in [ + "authorization", + "x-cashu", + "cookie", + "cf-connecting-ip", + "cf-ipcountry", + "x-forwarded-for", + "x-real-ip", + ] }, "body_size": len(request_body) if request_body else 0, },