ASP.NET Ajax Toolkit Slider handle displays broken image

依然范特西╮ 提交于 2019-12-11 03:04:17

问题


Using ASP.NET 4.5 Web Forms project that has been running for years and a new problem arose: the ASP.NET Ajax Control Toolkit Slider stop rendering an image (its a broken image symbol where the "handle" usually renders).

This only happens in IE11. Its working OK in Chrome nor Firefox (below):

Currently reviewing recent changes to code made (we've been doing an annual security review on OWASP Top 10) to see what may have broken it, but any advice appreciated.

Edit: recently we have been adding entries to our web.config customHeaders section per https://scotthelme.co.uk/hardening-your-http-response-headers

When we set X-Content-Type-Options=nosniff in web.config as below:

  </system.webServer>
    ...
    <httpProtocol>
      <customHeaders>   
        <add name="X-Content-Type-Options" value="nosniff" />
      </customHeaders>
    </httpProtocol>
  </system.webServer>

the slider breaks in E11. When the above is removed, the slider works in IE11.

I don't fully understand why, but this appears to be our culprit.

来源:https://stackoverflow.com/questions/49327387/asp-net-ajax-toolkit-slider-handle-displays-broken-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!