IE不会显示带有x-content-type-options标头的bmp图像 [英] IE not showing a bmp image with x-content-type-options header

查看:593
本文介绍了IE不会显示带有x-content-type-options标头的bmp图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的服务器端使用"X-Content-Type-Options"提供图片:nosniff标头,以防止浏览器嗅探mime类型.

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

现在,当我在html文件中嵌入/引用图像时,它就无法在Internet Explorer中打开.

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

在此处采样 https://www.w3schools.com/code/tryit .asp?filename = G180IFYZL1IS

仅当MIME类型为(image/bmp)的bmp文件和Internet Explorer中出现此问题.

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

最好的问候,

Saurav

推荐答案

img标签会忽略内容配置标头吗?

Does img tag overlooks the content-disposition headers?

是的

HTML会显示在此处显示图像".

The HTML says "Show an image here".

这不是导航到URL然后试图确定是否最好内联显示或下载它的情况.

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.

这篇关于IE不会显示带有x-content-type-options标头的bmp图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆