How to fix 'invalid crumb' warnings?

Are you using tomcat? @slide_o_mix found some stackoverflow posts about how to tweak tomcat support to fix the issue