Update util.ts
This commit is contained in:
@@ -57,7 +57,8 @@ export const performAwsIamLogin = async (baseUrl: string, identityId: string, re
|
|||||||
{
|
{
|
||||||
service: "sts",
|
service: "sts",
|
||||||
path: `/?${body}`,
|
path: `/?${body}`,
|
||||||
region
|
region,
|
||||||
|
host: `sts.${region}.amazonaws.com`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessKeyId: creds.accessKeyId,
|
accessKeyId: creds.accessKeyId,
|
||||||
@@ -66,8 +67,6 @@ export const performAwsIamLogin = async (baseUrl: string, identityId: string, re
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
delete signOpts.headers?.host;
|
|
||||||
delete signOpts.headers?.Host;
|
|
||||||
const headers = {
|
const headers = {
|
||||||
...signOpts.headers
|
...signOpts.headers
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user