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
Merge branch 'stable'
zadam9a5a08510347
diff --cc src/public/javascripts/services/server.jsindex 0dbabf881c,74fcc19e2c..c0e50f1c31--- a/src/public/javascripts/services/server.js+++ b/src/public/javascripts/services/server.js@@@ -6,8 -14,10 +14,11 @@@ function getHeaders()// so hypothetical protectedSessionId becomes protectedsessionid on the backend// also avoiding using underscores instead of dashes since nginx filters them out by defaultreturn {+ // protectedSessionId is normally carried in cookie, but for electron AJAX requests we bypass+ // HTTP so no cookies and we need to pass it here explicitly+ 'trilium-protected-session-id': protectedSessionId,- 'trilium-source-id': glob.sourceId+ 'trilium-source-id': glob.sourceId,+ 'x-csrf-token': glob.csrfToken};}