fix: prevent 403 reporting (#38449)

This commit is contained in:
Oliver Eyton-Williams
2020-03-26 22:22:57 +05:30
committed by GitHub
parent 4fbce07792
commit 4300ce44db
@@ -17,10 +17,7 @@ export default function sentryErrorHandler() {
shouldHandleError(err) {
// CSRF errors have status 403, consider ignoring them once csurf is
// no longer rejecting people incorrectly.
return (
!isHandledError(err) &&
(!err.status || err.status === 403 || err.status >= 500)
);
return !isHandledError(err) && (!err.status || err.status >= 500);
}
});
}