mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-28 18:42:28 +08:00
chore(prettier): fix code style
This commit is contained in:
parent
4cd18441e4
commit
ea621ef8e1
@ -73,14 +73,14 @@ import etapiSpecRoute from "../etapi/spec.js";
|
|||||||
import etapiBackupRoute from "../etapi/backup.js";
|
import etapiBackupRoute from "../etapi/backup.js";
|
||||||
|
|
||||||
const { doubleCsrfProtection: csrfMiddleware } = doubleCsrf({
|
const { doubleCsrfProtection: csrfMiddleware } = doubleCsrf({
|
||||||
getSecret: () => sessionSecret,
|
getSecret: () => sessionSecret,
|
||||||
cookieOptions: {
|
cookieOptions: {
|
||||||
path: "", // empty, so cookie is valid only for the current path
|
path: "", // empty, so cookie is valid only for the current path
|
||||||
secure: false,
|
secure: false,
|
||||||
sameSite: false,
|
sameSite: false,
|
||||||
httpOnly: false,
|
httpOnly: false
|
||||||
},
|
},
|
||||||
cookieName: "_csrf",
|
cookieName: "_csrf"
|
||||||
});
|
});
|
||||||
|
|
||||||
const MAX_ALLOWED_FILE_SIZE_MB = 250;
|
const MAX_ALLOWED_FILE_SIZE_MB = 250;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user