I want to enable tomcat CORS filter, i added this to web.xml:
CorsFilter or
In my case with Ueditor,the X-Requested-With should be X_Requested_With.
X-Requested-With
X_Requested_With