diff --git a/packages/api/src/routers/api/clickhouseProxy.ts b/packages/api/src/routers/api/clickhouseProxy.ts index efa95379a..201159ed7 100644 --- a/packages/api/src/routers/api/clickhouseProxy.ts +++ b/packages/api/src/routers/api/clickhouseProxy.ts @@ -25,8 +25,6 @@ router.post( try { const result = await fetch(`${host}/?query=SELECT 1`, { headers: { - 'X-ClickHouse-User': username || '', - 'X-ClickHouse-Key': password || '', }, signal: AbortSignal.timeout(2000), }); @@ -127,16 +125,6 @@ const proxyMiddleware: RequestHandler = // @ts-expect-error _req.query is type ParamQs, which doesn't play nicely with URLSearchParams. TODO: Replace with getting query params from _req.url eventually const qparams = new URLSearchParams(_req.query); - if (_req._hdx_connection?.username) { - proxyReq.setHeader( - 'X-ClickHouse-User', - _req._hdx_connection.username, - ); - } - // Passwords can be empty - if (_req._hdx_connection?.password) { - proxyReq.setHeader('X-ClickHouse-Key', _req._hdx_connection.password); - } if (_req.method === 'POST') { // TODO: Use fixRequestBody after this issue is resolved: https://github.com/chimurai/http-proxy-middleware/issues/1102