diff --git a/packages/core/src/main/k8s/api-base-host-header.injectable.ts b/packages/core/src/main/k8s/api-base-host-header.injectable.ts index 281c4fda84..fda4fe800a 100644 --- a/packages/core/src/main/k8s/api-base-host-header.injectable.ts +++ b/packages/core/src/main/k8s/api-base-host-header.injectable.ts @@ -11,7 +11,7 @@ const apiBaseHostHeaderInjectable = getInjectable({ instantiate: (di) => { const lensProxyPort = di.inject(lensProxyPortInjectable); - return `localhost:${lensProxyPort.get()}`; + return `lens.app:${lensProxyPort.get()}`; }, injectionToken: apiBaseHostHeaderInjectionToken, }); diff --git a/packages/core/src/main/lens-proxy/lens-proxy-certificate-request-handler.injectable.ts b/packages/core/src/main/lens-proxy/lens-proxy-certificate-request-handler.injectable.ts index c26d1ac275..5f6938912a 100644 --- a/packages/core/src/main/lens-proxy/lens-proxy-certificate-request-handler.injectable.ts +++ b/packages/core/src/main/lens-proxy/lens-proxy-certificate-request-handler.injectable.ts @@ -2,7 +2,6 @@ * Copyright (c) OpenLens Authors. All rights reserved. * Licensed under MIT License. See LICENSE in root directory for more information. */ -import type { SelfSignedCert } from "selfsigned"; import { lensProxyCertificateChannel } from "../../common/certificate/lens-proxy-certificate-channel"; import { getRequestChannelListenerInjectable } from "../utils/channel/channel-listeners/listener-tokens"; import lensProxyCertificateInjectable from "../../common/certificate/lens-proxy-certificate.injectable"; @@ -10,7 +9,7 @@ import lensProxyCertificateInjectable from "../../common/certificate/lens-proxy- const lensProxyCertificateRequestHandlerInjectable = getRequestChannelListenerInjectable({ channel: lensProxyCertificateChannel, handler: (di) => { - const lensProxyCertificate = di.inject(lensProxyCertificateInjectable).get() as SelfSignedCert; + const lensProxyCertificate = di.inject(lensProxyCertificateInjectable).get(); return () => ({ cert: lensProxyCertificate.cert,