diff --git a/files/routes/front.py b/files/routes/front.py index 26fee22d2..3aa3628ab 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -134,7 +134,7 @@ def notifications(v): @limiter.limit("3/second;30/minute;400/hour;2000/day") @auth_desired def front_all(v): - if not session.get("session_id"): + if g.webview and not session.get("session_id"): session.permanent = True session["session_id"] = secrets.token_hex(49)