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;