Last Updated: February 25, 2016
·
577
· jeremybass

IIS and compatible mode meta issues

If you have issues with Chrome and IE breaking sites do to compatibility modes even though you have meta tags set in your html and you are serving your site off IIS then you need to set the meta values in the headers. Here is how:

<?xml version="1.0" encoding="utf-8"?>
<configuration>

<system.webServer>
    <httpProtocol>
      <customHeaders>
        <add name="X-UA-Compatible" value="IE=Edge,chrome=1" />
        <add name="Access-Control-Allow-Origin" value="*" />
      </customHeaders>
    </httpProtocol>
</system.webServer>
</configuration>