default to host sts for aws auth

This commit is contained in:
Maidul Islam
2024-08-21 22:29:30 -04:00
parent 1515dd8a71
commit fb06f5a3bc

View File

@@ -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
});