Skip to content

Commit

Permalink
reject the original request if it's unrelated to CSRF
Browse files Browse the repository at this point in the history
  • Loading branch information
Omer Lachish committed Sep 21, 2020
1 parent dde2685 commit 9c4a00c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/app/services/axios.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const authRefreshInterceptor = createAuthRefreshInterceptor(
if (message.includes("CSRF")) {
return axios.get("/ping");
} else {
return Promise.reject();
return Promise.reject(failedRequest);
}
},
{ statusCodes: [400] }
Expand Down

0 comments on commit 9c4a00c

Please sign in to comment.