MM-32008 Do not cache request body (#5117)

This commit is contained in:
Elias Nahum 2021-01-15 11:26:39 -03:00 committed by GitHub
parent e5104b8dd9
commit ceed579a68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -549,7 +549,11 @@ export default class Client4 {
const {data} = await this.doFetchWithResponse(
`${this.getUsersRoute()}/login`,
{method: 'post', body: JSON.stringify(body)},
{
method: 'post',
body: JSON.stringify(body),
headers: {'Cache-Control': 'no-store'},
},
);
return data;