Admin-Ahead Community

Windows => Control Panels => WebsitePanel => Topic started by: Chetan Singh on November 23, 2013, 06:51:18 pm

Title: Unable to access .json files on the browser.
Post by: Chetan Singh on November 23, 2013, 06:51:18 pm
Hello,

With the help of this article you will be able to access/browse .json files on the browser. You need to add this code in your domain's Web.config file,

=======================>>>
<system.webServer>
    <staticContent>
      <mimeMap fileExtension=".json" mimeType="application/json" />
    </staticContent>
  </system.webServer>
=======================>>>

To set this for the entire server:

Open the properties for the server in IIS Manager and click MIME Types
Click "New". Enter "JSON" for the extension and "application/json" for the MIME type.

Thank you,