diff --git a/app.py b/app.py index 0666c81d..6b2b12e9 100644 --- a/app.py +++ b/app.py @@ -153,6 +153,7 @@ def load_admin_setting() -> Dict[str, Any]: # CSRF protection. csrf = CSRFProtect(app) +app.config['WTF_CSRF_TIME_LIMIT'] = None # Set CSRF token lifetime tied to the life of the session. @app.before_request