要開啟的方式很簡單,修改 Web.config 檔案即可
若沒有 Web.Config 這個檔案,直接使用以下內容:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<configuration> | |
<system.webServer> | |
<staticContent> | |
<mimeMap fileExtension=".json" mimeType="application/json" /> | |
</staticContent> | |
</system.webServer> | |
</configuration> |
儲存後,上傳至 /site/wwwroot 目錄下即可
若是已經有 Web.Config 檔案,則直接加入