Skip to content

Commit

Permalink
Fix issue handling invalid CSRF token (#3821)
Browse files Browse the repository at this point in the history
Signed-off-by: Cintia Sanchez Garcia <cynthiasg@icloud.com>
  • Loading branch information
cynthia-sg authored May 17, 2024
1 parent 667f436 commit e29dbf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ class API_CLASS {
const options: FetchOptions | any = await this.processFetchOptions(props.opts);

return fetch(props.url, options)
.then(this.handleErrors)
.then((res) => this.handleErrors(res))
.then((res) => this.handleContent(res, props.skipCamelConversion, props.checkApprovedSession, props.headers))
.catch((error) => Promise.reject(error));
});
Expand Down

0 comments on commit e29dbf1

Please sign in to comment.