loading .json files generates 404 errors

后端 未结 4 754
悲哀的现实
悲哀的现实 2020-12-14 06:13

My first Azure website is a simple test site I\'ve had for a while that makes ajax calls back to the server for JSON data. All the data files have .json extensions. Azure

4条回答
  •  孤街浪徒
    2020-12-14 06:44

    have you tried adding the specific MIME type to your server's config file?

    http://www.iis.net/configreference/system.webserver/staticcontent/mimemap

    If you add the mime type as application/json; charset=utf that should work.

提交回复
热议问题