サーバー側スクリプト (.asp) を使用して、その場でキャプチャ イメージ (.bmp として) を生成します。
次のようにページに含まれています。
<iframe id="commentCaptcha" height="20px" width="50px" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" src="/inc_captcha.asp">
すべてが正常に機能します。
問題/質問は、Google Chrome コンソールで次の警告が表示されることです。
Resource interpreted as Document but transferred with MIME type image/bmp: "/inc_captcha.asp".
サーバーから返される実際の生のヘッダーは次のとおりです。
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Type: image/bmp
Expires: Sun, 13 Jan 2013 03:11:36 GMT
Server: Microsoft-IIS/7.5
Date: Sun, 13 Jan 2013 03:12:36 GMT
Connection: close
この警告を防ぐ方法はありますか?