java - How do I whitelist a JSP page with Tomcat's CSRFPrevention Filter? -


i have tomcat's csrfprevention filter working fine on tomcat 6.0.xx. whitelist single page (that is, make exempt filter being applied it). under <filter-mapping> in web.xml, have many url patterns, 1 of them being:

<url-pattern>/secure/*</url-pattern>

this url pattern encompasses ~50 jsp pages. would, however, whitelist 1 of these 50 pages. prefer not have add of 49 other pages web.xml. there anyway whitelist 1 page?

try init-param param entrypoints skip url, here home. use csv multiple urls:

  <filter>     <filter-name>csrffilter</filter-name>     <filter-class>org.apache.catalina.filters.csrfpreventionfilter</filter-class>     <init-param>       <param-name>entrypoints</param-name>       <param-value>/home</param-value>     </init-param>   </filter> 

Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -