我刚刚检查了添加的线程
<customHeaders>
<add name="X-UA-Compatible" value="IE=EmulateIE9" />
</customHeaders>
如果有人可以帮助我,如果服务器不是 IIS 或 Lamp 堆栈,而是码头或 tomcat,如何为 IE 添加此服务器参数?
我刚刚检查了添加的线程
<customHeaders>
<add name="X-UA-Compatible" value="IE=EmulateIE9" />
</customHeaders>
如果有人可以帮助我,如果服务器不是 IIS 或 Lamp 堆栈,而是码头或 tomcat,如何为 IE 添加此服务器参数?
在码头中,您可以使用重写处理程序来添加标题。
http://www.eclipse.org/jetty/documentation/current/jetty-handlers.html#rewrite-handler
或者,如果您使用的是 servlet,则可以只使用 servlet 过滤器,因为这是 servlet 规范的一部分,它可以在 jetty 或 tomcat 上工作。
http://docs.oracle.com/javaee/5/api/javax/servlet/Filter.html