문제

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