Tuesday, March 27, 2018

Azure App Service: Enabling Static Content

I had an AngularJS application running as an Azure App Service and noted that it doesn’t serve JSON files.

The fix was simple, adding a web.config file manually and allowing static content.
<configuration>
  <system.webServer>
    <staticContent>
      <mimeMap fileExtension="json" mimeType="application/json" />
    </staticContent>
  </system.webServer>
</configuration>
Happy Coding.

Regards,
Jaliya

No comments:

Post a Comment