fix: prevent 403 reporting (#38449)

This commit is contained in:
Oliver Eyton-Williams
2020-03-26 17:52:57 +01:00
committed by GitHub
parent 4fbce07792
commit 4300ce44db

View File

@ -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);
}
});
}