The filter org.apache.catalina.filters.CorsFilter
seek first a header in the request: Origin
. If this header does not exist, the filter does not add any header in the response. Perhaps for that reason does not work.
Additionally, in a POST
request, look for the header Content-Type
. Something similar happens to other methods. May you want to see the code of this filter. In another way, there is a flowchart: