Tomcat 8: CORS filter doesn't work
<p>Here I have an application deployed in Tomcat 8 instance. I have followed <a href="http://tomcat.apache.org/tomcat-8.0-doc/config/filter.html#CORS_Filter" rel="nofollow">Tomcat 8 document</a> to add CORS filter in :</p>

<pre><code>/apache-tomcat-8/conf/Catalina/web.xml
</code></pre>

<p>with basically the same configuration in the document</p>

<pre><code>&lt;filter&gt;
    &lt;filter-name&gt;CorsFilter&lt;/filter-name&gt;
    &lt;filter-class&gt;org.apache.catalina.filters.CorsFilter&lt;/filter-class&gt;
&lt;/filter&gt;
&lt;filter-mapping&gt;
    &lt;filter-name&gt;CorsFilter&lt;/filter-name&gt;
    &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
&lt;/filter-mapping&gt;
</code></pre>

<p>and when I run following command:</p>

<pre><code>curl -I "http://localhost:8181/MySuperApp/login/"

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: no-store, must-revalidate
Set-Cookie: JSESSIONID=C51BD2982C0EBB7DA73D40E7AE856B93; Path=/MySuperApp/; HttpOnly
Content-Type: text/html;charset=UTF-8
Content-Language: en-US
Content-Length: 883
Date: Tue, 27 Sep 2016 20:20:11 GMT
</code></pre>

<p>So basically, CORS didn't take effect at all...what could be possible missing, or is there any places I should check that the parameters may be overridden?</p>