IE not showing a bmp image with x-content-type-opt

2019-08-17 10:03发布

Our server side serves images using "X-Content-Type-Options": nosniff header to prevent mime type sniffing by browsers.

Now when i embed/reference the image in an html file, then it does not open in Internet explorer.

Sample here https://www.w3schools.com/code/tryit.asp?filename=G180IFYZL1IS

This problem is only happening with bmp files with mime type (image/bmp) and in internet explorer.

Best Regards,

Saurav

1条回答
霸刀☆藐视天下
2楼-- · 2019-08-17 10:59

Does img tag overlooks the content-disposition headers?

Yes.

The HTML says "Show an image here".

It isn't a case of navigating to a URL and then trying to decide if it is best to show it inline or download it.

查看更多
登录 后发表回答