Skip to content

Commit

Permalink
tie csrf token lifetime to session
Browse files Browse the repository at this point in the history
  • Loading branch information
FuHsinyu committed Dec 4, 2024
1 parent 4656a29 commit fa259e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +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
def static_loader() -> Optional[Response]:
Expand Down

0 comments on commit fa259e0

Please sign in to comment.