fix express proxy headers

This commit is contained in:
Zimeng Xiong
2026-01-30 14:26:03 -08:00
parent 4b56d3cfc6
commit d67bd1daf8
3 changed files with 39 additions and 9 deletions
@@ -97,7 +97,6 @@ describe("Issue #38: CSRF with trust proxy settings", () => {
const clientId1 = `${externalProxyIp1}:${userAgent}`;
const token = createCsrfToken(clientId1);
console.log("\n📝 Step 1: Client fetches CSRF token");
console.log(
" X-Forwarded-For:",
`${clientIp1}, ${externalProxyIp1}, 172.17.0.3`,
@@ -111,7 +110,6 @@ describe("Issue #38: CSRF with trust proxy settings", () => {
const clientId2 = `${externalProxyIp2}:${userAgent}`;
console.log("\n📤 Step 2: Client creates drawing with token");
console.log(
" X-Forwarded-For:",
`${clientIp1}, ${externalProxyIp2}, 172.17.0.3`,