title: OWASP CSRFGuard not working (404 not found error)
body: <p>I am trying to protect my web application using OWASP CSRFGuard. Below are the required configuration files</p>
  <p>web.xml</p>
  <pre><code>&lt;servlet&gt;
      &lt;servlet-name&gt;CsrfServlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.owasp.csrfguard.servlet.JavaScriptServlet&lt;/servlet-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;source-file&lt;/param-name&gt;
          &lt;param-value&gt;WEB-INF/csrfguard.js&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;inject-into-forms&lt;/param-name&gt;
          &lt;param-value&gt;true&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;inject-into-attributes&lt;/param-name&gt;
          &lt;param-value&gt;true&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;domain-strict&lt;/param-name&gt;
          &lt;param-value&gt;false&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;referer-pattern&lt;/param-name&gt;
          &lt;param-value&gt;.*&lt;/param-value&gt;
      &lt;/init-param&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;CsrfServlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/csrfguard&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  <p>I have placed the required <code>csrfguard.js</code> and <code>csrfguard.properties</code> in <code>web/WEB-INF/</code> directory (without any modification). I have also placed the following line in one test jsp page</p>
  <pre><code>&lt;script src=&quot;/csrfguard&quot;&gt;&lt;/script&gt;
  </code></pre>
  <p>But whenever the page is loaded the browser gives a <code>404</code> error while loading <code>csrfguard</code>.</p>
  <p><a href="https://i.stack.imgur.com/uwUr1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uwUr1.png" alt="enter image description here" /></a></p>
  <p>I am not sure what I am doing wrong here. Some help would be appreciated.</p>