From 356dfa32f11de3f7302d7d5a5ce7cddeb2ba34e0 Mon Sep 17 00:00:00 2001 From: Daniel Bedeleanu Date: Sat, 11 Apr 2026 14:38:00 +0300 Subject: [PATCH] fix: remove invalid add_exception_handler call for slowapi --- backend/main.py | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/main.py b/backend/main.py index 45d45f8b..e01ab96c 100644 --- a/backend/main.py +++ b/backend/main.py @@ -18,7 +18,6 @@ log.info("TFM aInventory API process started.") # [H-02] Rate limiting on API limiter = Limiter(key_func=get_remote_address) app.state.limiter = limiter -app.add_exception_handler = limiter.add_exception_handler # [SECURITY FIX M-01] CORS: allow_origins=["*"] + allow_credentials=True is invalid per spec. # Allowed origins are configured via ALLOWED_ORIGINS environment variable (comma-separated).