From 7877aca2d7acf20838ad8da66caa0fba16d97d2b Mon Sep 17 00:00:00 2001 From: Augustas Date: Thu, 27 Nov 2025 11:10:38 +0200 Subject: [PATCH] cleanup deprecated X-Weaviate-Api-Key header --- src/connection/grpc.ts | 2 -- src/connection/http.ts | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/connection/grpc.ts b/src/connection/grpc.ts index 327d4b27..05bef690 100644 --- a/src/connection/grpc.ts +++ b/src/connection/grpc.ts @@ -264,8 +264,6 @@ const getMetadataWithEmbeddingServiceAuth = (config: GrpcConnectionParams, beare ...config.headers, authorization: bearerToken, 'X-Weaviate-Cluster-Url': config.host, - // keeping for backwards compatibility for older clusters for now. On newer clusters, Embedding Service reuses Authorization header. - 'X-Weaviate-Api-Key': bearerToken, } : config.headers ); diff --git a/src/connection/http.ts b/src/connection/http.ts index db80b97c..8c2ef07f 100644 --- a/src/connection/http.ts +++ b/src/connection/http.ts @@ -435,7 +435,5 @@ const getAuthHeaders = (config: InternalConnectionParams, bearerToken: string) = ? { Authorization: `Bearer ${bearerToken}`, 'X-Weaviate-Cluster-Url': config.host, - // keeping for backwards compatibility for older clusters for now. On newer clusters, Embedding Service reuses Authorization header. - 'X-Weaviate-Api-Key': bearerToken, } : undefined;