I have been trying to make a small app work on IE9+, however meteor is setting the DOCTYPE to

<!-- DOCTYPE html -->

This happens only on IE, any idea on how to fix this, or what could be causing this?

有帮助吗?

解决方案

So after looking around for a long time I found the answer!

This should go in the server side of the meteor app.

connectHandler.use(function (req, res, next) {
      res.setHeader('Strict-Transport-Security', 'max-age=2592000; includeSubDomains');
      res.setHeader('X-UA-Compatible', 'IE=Edge,chrome=1');
      return next();
  })
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top