Skip to content

Commit

Permalink
fix(amazon-cognito-identity-js): sets no-store header for cognito use…
Browse files Browse the repository at this point in the history
…r pools (#10804)
  • Loading branch information
haverchuck authored and Dustin Noyes committed Dec 23, 2022
1 parent 4656bc9 commit 7089f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/amazon-cognito-identity-js/src/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ export default class Client {
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': `AWSCognitoIdentityProviderService.${operation}`,
'X-Amz-User-Agent': UserAgent.prototype.userAgent,
'Cache-Control': 'no-store',
};

const options = Object.assign({}, this.fetchOptions, {
headers,
method: 'POST',
mode: 'cors',
cache: 'no-cache',
body: JSON.stringify(params),
});

Expand Down

0 comments on commit 7089f8a

Please sign in to comment.