X-UA-Compatible 서버에서 설정하기

교교 2014.04.30 12:34:05
Apache 에서 설정

<IfModule mod_setenvif.c>
  <IfModule mod_headers.c>
    BrowserMatch MSIE ie
    Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
  </IfModule>
</IfModule>
<IfModule mod_headers.c>
  Header append Vary User-Agent
</IfModule>


Nginx 설정

server {
  #...
  add_header X-UA-Compatible "IE=Edge,chrome=1";
}


IIS 7.0이상 설정

<configuration>
  <system.webServer>
     <httpProtocol>
        <customHeaders>
           <add name="X-UA-Compatible" value="IE=edge,chrome=1" />
        </customHeaders>
     </httpProtocol>
  </system.webServer>
</configuration>