How to forcefully set IE's Compatibility Mode off from the server-side?

前端 未结 4 1599
遇见更好的自我
遇见更好的自我 2020-12-02 05:36

In a domain-controlled environment I\'m finding that the compatibility mode is triggered on certain clients (winXP/Win7, IE8/IE9) even when we are providing a X-UA tags, a !

4条回答
  •  臣服心动
    2020-12-02 06:01

    For Node/Express developers you can use middleware and set this via server.

    app.use(function(req, res, next) {
      res.setHeader('X-UA-Compatible', 'IE=edge');
      next();
    });
    

提交回复
热议问题