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 @@
+
diff --git a/changedetectionio/templates/import.html b/changedetectionio/templates/import.html index 943e580d6..e9376fc46 100644 --- a/changedetectionio/templates/import.html +++ b/changedetectionio/templates/import.html @@ -4,6 +4,7 @@
+
Enter one URL per line, and optionally add tags for each URL after a space, delineated by comma (,): diff --git a/changedetectionio/templates/login.html b/changedetectionio/templates/login.html index 32259930d..2e24ddb4b 100644 --- a/changedetectionio/templates/login.html +++ b/changedetectionio/templates/login.html @@ -4,6 +4,7 @@