Page 1 of 1

XSRF token mismatch Error Handling

Posted: Sat Oct 11, 2014 1:02 am
by prabhat.kataria
Whenever session expires for form post on site demo I get following exception
javax.servlet.ServletException: org.broadleafcommerce.common.exception.ServiceException: XSRF token mismatch

I understand what this exception is about but want to know if there is any way through which I can catch this exception and redirect user to the same page rather than showing them any error page?

Re: XSRF token mismatch Error Handling

Posted: Sun Oct 12, 2014 9:54 pm
by phillipuniverse
Sure, you can always override the blCsrfFilter bean to your own filter: https://github.com/BroadleafCommerce/Br ... ilter.java