diff --git a/changedetectionio/__init__.py b/changedetectionio/__init__.py index 860625870..f887c05cf 100644 --- a/changedetectionio/__init__.py +++ b/changedetectionio/__init__.py @@ -35,6 +35,7 @@ from flask import ( url_for, ) from flask_login import login_required +from flask_wtf import CSRFProtect from changedetectionio import html_tools @@ -72,6 +73,9 @@ app.config['LOGIN_DISABLED'] = False # Disables caching of the templates app.config['TEMPLATES_AUTO_RELOAD'] = True +csrf = CSRFProtect() +csrf.init_app(app) + notification_debug_log=[] def init_app_secret(datastore_path): diff --git a/changedetectionio/templates/edit.html b/changedetectionio/templates/edit.html index 0f10c8fa1..74d41725c 100644 --- a/changedetectionio/templates/edit.html +++ b/changedetectionio/templates/edit.html @@ -19,6 +19,7 @@