fix: remove invalid add_exception_handler call for slowapi

This commit is contained in:
Daniel Bedeleanu
2026-04-11 14:38:00 +03:00
parent c2bd8e44fb
commit 356dfa32f1

View File

@@ -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).