ETC

Internet Explorer9에서 "text/plain" Content Type 변경

MuGrammer 2012. 12. 14. 17:11

In IE9 Standards mode, documents delivered with a "text/plain" MIME type will not be MIME-sniffed to another type. Documents will render or download as plain text only.

Symptom

If Windows Internet Explorer 9 encounters an HTML document delivered with a "text/plain" content-type, the document will be rendered as plain text unless the site is rendering in Compatibility View.

This is useful for web developer scenarios because it allows easier sharing of HTML source code snippets. It's also a welcome change from a security point of view, because Internet Explorer 9 is less susceptible to script injection attacks in files delivered with a "text/plain" Content Type.

Resolution

  • Use the content type "text/plain" to ensure a plain text rendering in Internet Explorer 9
  • Configure your server to send proper Content-Type headers for all documents that your server will deliver; for instance, if your server offers Portable Document Format (PDF) files for download, be sure that these files are delivered with the "application/pdf" MIME type

If you find any sites that are sending improper MIME types and behave incorrectly in Windows Internet Explorer, please file a bug on Connect.


출처 : http://msdn.microsoft.com/en-us/library/ie/gg622940(v=vs.85).aspx


결국 "text/plain" content type을 이용하여 html 페이지를 뿌려주던 기존 방식은 더 이상 사용 할 수가 없다. 


프레임워크 수정해야 할 것 같은데 어쩌지..??? 

반응형

'ETC' 카테고리의 다른 글

alert 창 한글깨짐  (0) 2013.01.21
Window Sysinternals  (0) 2013.01.16
find와 sed 그리고 xargs  (0) 2012.11.20
rcp  (0) 2012.10.29
OPTIMIZER  (0) 2012.10.15