How to provide protection against Cross Site Request Forgery (CSRF) attacks for an old web application built on Java and struts2 framework?
Tried adding filter before servlet, stuck over there
Old application should use a token
or tokenSession
interceptor.
You can find details in my previous answer: Struts2 token interceptor: CSRF protection.