Allow loading of JSON files in Visual Studio Express 2013 for Web

后端 未结 4 1017
醉酒成梦
醉酒成梦 2020-11-30 22:36

I have the problem, that the IIS from Visual Studio Express 2013 for Web doesn\'t allow the loading of *.json files. When trying to load a *.json file I get a 403 Forbidden

4条回答
  •  死守一世寂寞
    2020-11-30 22:50

    • Open CMD with administrator privilages.
    • Go to:

      cd C:\Program Files\IIS Express or
      cd C:\Program Files (x86)\IIS Express

    • Run command:

      appcmd set config /section:staticContent /+[fileExtension='JSON',mimeType='application/x-javascript']

提交回复
热议问题