Send connection string in Authorization header for Mongo/Cassandra token request

This commit is contained in:
Asier Isayas
2026-08-12 09:10:03 -04:00
parent e24e187ebd
commit f447974f0a
@@ -29,6 +29,7 @@ interface Props {
export const fetchEncryptedToken = async (connectionString: string): Promise<string> => {
const headers = new Headers();
headers.append(HttpHeaders.connectionString, connectionString);
headers.append(HttpHeaders.authorization, connectionString);
const url = configContext.PORTAL_BACKEND_ENDPOINT + "/api/connectionstring/token/generatetoken";
const response = await fetch(url, { headers, method: "POST" });
if (!response.ok) {