Merge pull request #2320 from Infisical/maidul-deuyfgwyu

Set default to host sts endpoint for aws auth
This commit is contained in:
Maidul Islam
2024-08-21 22:38:49 -04:00
committed by GitHub
@@ -65,7 +65,7 @@ export const identityAwsAuthServiceFactory = ({
} }
}: { data: TGetCallerIdentityResponse } = await axios({ }: { data: TGetCallerIdentityResponse } = await axios({
method: iamHttpRequestMethod, method: iamHttpRequestMethod,
url: identityAwsAuth.stsEndpoint, url: headers?.Host ? `https://${headers.Host}` : identityAwsAuth.stsEndpoint,
headers, headers,
data: body data: body
}); });