<filter>
<filter-name>httpHeaderSecurity</filter-name>
<filter-class>org.apache.catalina.filters.HttpHeaderSecurityFilter</filter-class>
<init-param>
<param-name>blockContentTypeSniffingEnabled</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>httpHeaderSecurity</filter-name>
<url-pattern>/pc/index.html</url-pattern>
</filter-mapping>
加了这个filter之后,如下路径就报404了,注释掉就能正常访问
http://127.0.0.1:7001/chatClient/pc/index.html?v_t=C8ADC4819E1569EED6D4763FB958D1FA&customerSessionId=JVHXBBEAJCHJERGZDUBOJBHUAHFICBGWIVANGIFF&customerId=7800071499&channel=m
tomcat catalina.jar版本低了,里面没有这个HttpHeaderSecurityFilter