Questions tagged [servlet-filters]

When working with the Servlet API, a Servlet is typically employed for managing, preprocessing, and/or postprocessing individual requests. However, a Filter is better suited for altering or modifying general requests and responses according to specific conditions.

Is there a way to route an angular request through a spring filter prior to validation?

I'm currently working on implementing an XSS Filter in a backend application (built with JAVA and Spring). The goal is to validate input values from a frontend app (AngularJS) against the filter before proceeding to validate the rest of the content. My cu ...