Security update - Use CSRF token protection for forms, make "remove password" use HTTP Post (#484)

This commit is contained in:
dgtlmoon
2022-03-21 22:54:27 +01:00
committed by GitHub
parent f2fa638480
commit 5483f5d694
12 changed files with 54 additions and 28 deletions

View File

@@ -42,6 +42,9 @@ def app(request):
cleanup(app_config['datastore_path'])
datastore = store.ChangeDetectionStore(datastore_path=app_config['datastore_path'], include_default_watches=False)
app = changedetection_app(app_config, datastore)
# Disable CSRF while running tests
app.config['WTF_CSRF_ENABLED'] = False
app.config['STOP_THREADS'] = True
def teardown():