Fix XSS, CSRF, input validation, and related security issues

This commit is contained in:
2026-04-14 16:00:50 -05:00
parent e0f04ea971
commit 270acc0430
7 changed files with 86 additions and 33 deletions
+1
View File
@@ -15,6 +15,7 @@ def app():
SECRET_KEY = "test-secret"
SQLALCHEMY_TRACK_MODIFICATIONS = False
TESTING = True
WTF_CSRF_ENABLED = False # disable CSRF validation in tests
HOMEASSISTANT_URL = None # prevent HA poller from starting in tests
HOMEASSISTANT_API_KEY = None