IE prompts to open or save json result from server

后端 未结 9 1224
既然无缘
既然无缘 2020-11-29 22:28

Internet explorer in compatibility mode gets the data from the server in an ajax callback method, and pops-up a dialog if I want to save the data or open. How to get rid of

9条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-29 22:38

    Sadly, this is just another annoying quirk of using Internet Explorer.

    The simple solution is to run a small .reg file on your PC, to tell IE to automatically open .json files, rather than nag about whether to open/save it.

    I've put a copy of the file you'll need here:

    JSON mime type

    You'll need to have Admin rights to run this.

提交回复
热议问题