Skip to content

Commit 51bf10e

Browse files
committed
Fix CSRF error
Fix CSRF error
1 parent 2657dd5 commit 51bf10e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

notebook.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
app.permanent_session_lifetime = timedelta(minutes=SessionConst.SESSION_TTL.value)
3131

3232
# Protection against CSRF attack
33-
CSRFProtect(app)
33+
csrf = CSRFProtect(app)
34+
csrf.init_app(app)
3435

3536
# databases
3637
account_db = Account()

0 commit comments

Comments
 (0)