Yes but on production debug config var is falsy (at least it should be) so the whoop page isnt displayed.
Oct 15, 2014
3
Level 2
Best way to handle invalid CSRF tokens
Hi,
by default, the CSRF middleware throws a (uncaught) TokenMismatchException if a CSRF token is invalid, which then results in a generic 'Whoops' error page.
How do you guys handle these?
Would Redirect::back()->withInput()->withErrors('Detected CSRF attempt'); be sensible or are there any potential problems with this?
In which cases could a legitimate user actually send an invalid csrf token?
Please or to participate in this conversation.