diff --git a/webapp/src/routes/note/[id].ts b/webapp/src/routes/note/[id].ts index c4b7c64..87c7afc 100644 --- a/webapp/src/routes/note/[id].ts +++ b/webapp/src/routes/note/[id].ts @@ -2,9 +2,7 @@ import type { EncryptedNote } from '$lib/model/EncryptedNote'; import type { RequestHandler } from '@sveltejs/kit'; export const get: RequestHandler = async ({ request, clientAddress, params }) => { - const ip = (request.headers.get('cd-connecting-ip') || - request.headers.get('x-forwarded-for') || - clientAddress) as string; + const ip = (request.headers.get('x-forwarded-for') || clientAddress) as string; const url = `${import.meta.env.VITE_SERVER_INTERNAL}/api/note/${params.id}`; const response = await fetch(url, { headers: {