Search code examples
asp.netcassinihttp-headers

Add http headers to Cassini via config


Our asp.net web site is currently deployed to an IIS7 server. We are setting some http headers via the config file such as this:

<httpProtocol>
  <customHeaders>
    <remove name="X-UA-Compatible" />
    <add name="X-UA-Compatible" value="IE=EmulateIE7" />
  </customHeaders>
</httpProtocol>

This works great for myself as I host my personal web under IIS. My Co-Worker is pretty bent on continuing to use Cassini for his development experience, which means our custom headers are not being sent. Is there a way to tell cassini to send these headers?

I would rather not have to code up a custom module to add this, and I don't want to add the header on every page in our site.


Solution

  • This feature is in the todo for the next release of CassiniDev, amongst others that may be of interest.