Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
sync endpoints should not set csrf cookie, #541
zadamcfb313b60e03
diff --git a/src/routes/routes.js b/src/routes/routes.jsindex 0aaf2b9d18..d4f444174a 100644--- a/src/routes/routes.js+++ b/src/routes/routes.js@@ -172,11 +172,11 @@ function register(app) {apiRoute(POST, '/api/password/change', passwordApiRoute.changePassword);apiRoute(POST, '/api/sync/test', syncApiRoute.testSync);- apiRoute(GET, '/api/sync/check', syncApiRoute.checkSync);apiRoute(POST, '/api/sync/now', syncApiRoute.syncNow);apiRoute(POST, '/api/sync/fill-sync-rows', syncApiRoute.fillSyncRows);apiRoute(POST, '/api/sync/force-full-sync', syncApiRoute.forceFullSync);apiRoute(POST, '/api/sync/force-note-sync/:noteId', syncApiRoute.forceNoteSync);+ route(GET, '/api/sync/check', [auth.checkApiAuth], syncApiRoute.checkSync, apiResultHandler);route(GET, '/api/sync/changed', [auth.checkApiAuth], syncApiRoute.getChanged, apiResultHandler);route(PUT, '/api/sync/update', [auth.checkApiAuth], syncApiRoute.update, apiResultHandler);route(POST, '/api/sync/finished', [auth.checkApiAuth], syncApiRoute.syncFinished, apiResultHandler);