fix: prevent 403 reporting (#38449)
This commit is contained in:
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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user