同一介面,手機/其他電腦瀏覽器正常顯示 JSON/文字,**只有特定電腦 IE/Edge 提示下載**。
伺服器回應 **Content-Type 缺失、或為瀏覽器不識別的型別**(如 application/octet-stream、text/plain; charset=iso-8859-1 導致編碼誤判),瀏覽器無法內建渲染,**預設觸發下載**。
Content-Type。@ResponseBody + produces = "application/json;charset=UTF-8"return Json(data) 自動設定response.setContentType("application/json;charset=UTF-8")default_type application/octet-stream 導致,需在 location 明確 add_header Content-Type application/json;。換用 **Chrome/Firefox** 開啟同一 URL,若能正常顯示 → **IE/Edge 解析較嚴格**,補全標準 Content-Type 即可修復。