How can I convince IE to simply display application/json rather than offer to download it?

前端 未结 9 604
野的像风
野的像风 2020-11-22 14:57

While debugging jQuery apps that use AJAX, I often have the need to see the json that is being returned by the service to the browser. So I\'ll drop the URL for the JSON da

9条回答
  •  醉梦人生
    2020-11-22 15:41

    I just had the same issue with an XMLHttpRequest. The site functions flawlessly in Chrome and FF, and in dozens upon dozens of Internet Explorer browsers in production. This ONE machine (the one our company is setting up to be a demo machine, of course) decided that it was going to prompt to save the json response to an ajax request.

    The accepted regedit solution below fixed it. Thanks.

提交回复
热议问题