From fb06f5a3bccdfb3c6fc8dca29d984d4abd680b6b Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Wed, 21 Aug 2024 22:29:30 -0400 Subject: [PATCH] default to host sts for aws auth --- .../src/services/identity-aws-auth/identity-aws-auth-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/services/identity-aws-auth/identity-aws-auth-service.ts b/backend/src/services/identity-aws-auth/identity-aws-auth-service.ts index 6e303c1f7..ddbbe2039 100644 --- a/backend/src/services/identity-aws-auth/identity-aws-auth-service.ts +++ b/backend/src/services/identity-aws-auth/identity-aws-auth-service.ts @@ -65,7 +65,7 @@ export const identityAwsAuthServiceFactory = ({ } }: { data: TGetCallerIdentityResponse } = await axios({ method: iamHttpRequestMethod, - url: identityAwsAuth.stsEndpoint, + url: headers?.Host ? `https://${headers.Host}` : identityAwsAuth.stsEndpoint, headers, data: body });