mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 13:56:11 +01:00
using dashes instead of underscores in header names to avoid the fact that nginx by default drops all headers with underscore in the header name
This commit is contained in:
@@ -15,7 +15,7 @@ function setDataKey(decryptedDataKey) {
|
||||
}
|
||||
|
||||
function setProtectedSessionId(req) {
|
||||
cls.namespace.set('protectedSessionId', req.headers.protected_session_id);
|
||||
cls.namespace.set('protectedSessionId', req.headers['trilium-protected-session-id']);
|
||||
}
|
||||
|
||||
function getProtectedSessionId() {
|
||||
|
||||
Reference in New Issue
Block a user