mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 00:05:50 +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:
@@ -12,9 +12,10 @@ function getHeaders() {
|
||||
|
||||
// headers need to be lowercase because node.js automatically converts them to lower case
|
||||
// so hypothetical protectedSessionId becomes protectedsessionid on the backend
|
||||
// also avoiding using underscores instead of dashes since nginx filters them out by default
|
||||
return {
|
||||
protected_session_id: protectedSessionId,
|
||||
source_id: glob.sourceId
|
||||
'trilium-protected-session-id': protectedSessionId,
|
||||
'trilium-source-id': glob.sourceId
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user